Mercurial > babel > mirror
view babel/tests/plural.py @ 590:6f86d60dab56 trunk
change repr output for babel.Locale so all attributes (territory, script, variant) are shown by itself. This should help identifying bad usage of the Locale class (e.g. Locale('de_DE') instead of Locale('de', 'DE'), #279
author | fschwarz |
---|---|
date | Thu, 09 Aug 2012 06:56:23 +0000 |
parents | ca203b2af83c |
children |
line wrap: on
line source
# -*- coding: utf-8 -*- # # Copyright (C) 2008-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 doctest import unittest from babel import plural def suite(): suite = unittest.TestSuite() suite.addTest(doctest.DocTestSuite(plural)) return suite if __name__ == '__main__': unittest.main(defaultTest='suite')