Mercurial > babel > mirror
view babel/messages/tests/__init__.py @ 591:d1618dfaf114 trunk
change Locale comparison: Locales are now considered equal if all of their attributes (language, territory, script, variant) are equal. Before __eq__ used the simple string representation which hides errors in Locale instantiation (see #279 and #311 for more information).
author | fschwarz |
---|---|
date | Thu, 09 Aug 2012 07:36:36 +0000 |
parents | ca203b2af83c |
children |
line wrap: on
line source
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2011 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')