Mercurial > babel > old > mirror
annotate babel/messages/tests/__init__.py @ 547:274f9a6485d4
Catalog class should not do decoding of input strings (fixes #256)
author | fschwarz |
---|---|
date | Sat, 19 Mar 2011 19:34:40 +0000 |
parents | e93f68837913 |
children |
rev | line source |
---|---|
3 | 1 # -*- coding: utf-8 -*- |
2 # | |
532 | 3 # Copyright (C) 2007-2011 Edgewall Software |
3 | 4 # All rights reserved. |
5 # | |
6 # This software is licensed as described in the file COPYING, which | |
7 # you should have received as part of this distribution. The terms | |
8 # are also available at http://babel.edgewall.org/wiki/License. | |
9 # | |
10 # This software consists of voluntary contributions made by many | |
11 # individuals. For the exact contribution history, see the revision | |
12 # history and logs, available at http://babel.edgewall.org/log/. | |
13 | |
14 import unittest | |
15 | |
16 def suite(): | |
337 | 17 from babel.messages.tests import catalog, extract, frontend, mofile, \ |
372
d1a9c618d2d5
We no longer neglect `catalog.plurals`. Added tests for it. Fixes #120.
palgarvio
parents:
337
diff
changeset
|
18 plurals, pofile, checkers |
3 | 19 suite = unittest.TestSuite() |
58
068952b4d4c0
Add actual data structures for handling message catalogs, so that more code can be reused here between the frontends.
cmlenz
parents:
56
diff
changeset
|
20 suite.addTest(catalog.suite()) |
3 | 21 suite.addTest(extract.suite()) |
14
29ef15a6fd75
* Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents:
3
diff
changeset
|
22 suite.addTest(frontend.suite()) |
162 | 23 suite.addTest(mofile.suite()) |
337 | 24 suite.addTest(plurals.suite()) |
3 | 25 suite.addTest(pofile.suite()) |
372
d1a9c618d2d5
We no longer neglect `catalog.plurals`. Added tests for it. Fixes #120.
palgarvio
parents:
337
diff
changeset
|
26 suite.addTest(checkers.suite()) |
3 | 27 return suite |
28 | |
29 if __name__ == '__main__': | |
30 unittest.main(defaultTest='suite') |