view babel/messages/tests/__init__.py @ 370:6129d2e770bc

We no longer neglect `catalog.plurals`. Added tests for it. Fixes #120. Added tests for the plural forms checker which will all now pass due to the above fix.
author palgarvio
date Mon, 30 Jun 2008 12:23:28 +0000
parents 9c41fe73e2e6
children 85e1beadacb0
line wrap: on
line source
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2008 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://babel.edgewall.org/wiki/License.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
# history and logs, available at http://babel.edgewall.org/log/.

import unittest

def suite():
    from babel.messages.tests import catalog, extract, frontend, mofile, \
                                     plurals, pofile, checkers
    suite = unittest.TestSuite()
    suite.addTest(catalog.suite())
    suite.addTest(extract.suite())
    suite.addTest(frontend.suite())
    suite.addTest(mofile.suite())
    suite.addTest(plurals.suite())
    suite.addTest(pofile.suite())
    suite.addTest(checkers.suite())
    return suite

if __name__ == '__main__':
    unittest.main(defaultTest='suite')
Copyright (C) 2012-2017 Edgewall Software