annotate babel/messages/tests/plurals.py @ 487:2d1c17275e5b stable-0.9.x

Merged revisions 484-489 via svnmerge from http://svn.edgewall.org/repos/babel/trunk ........ r484 | jruigrok | 2010-02-19 14:16:08 +0100 (vr, 19 feb 2010) | 4 lines Fix testcase name typo. Switch to use a locale that uses a different singular and plural form instead of just one form for both singular and plural. ........ r485 | jruigrok | 2010-02-19 14:38:24 +0100 (vr, 19 feb 2010) | 2 lines Add a test for a locale with one plural form. ........ r486 | jruigrok | 2010-02-19 14:45:25 +0100 (vr, 19 feb 2010) | 3 lines Put the square brackets test after all the normal plural tests. It's more logical. ........ r487 | jruigrok | 2010-02-19 15:12:41 +0100 (vr, 19 feb 2010) | 2 lines More than two plural forms work nowadays. Adjust the test. ........ r488 | jruigrok | 2010-02-19 15:15:56 +0100 (vr, 19 feb 2010) | 2 lines Actually make the msgid_plural be a plural as per typical use case. ........ r489 | jruigrok | 2010-02-24 13:27:32 +0100 (wo, 24 feb 2010) | 2 lines Forgot to bump the copyright line. ........
author jruigrok
date Sun, 11 Apr 2010 09:09:11 +0000
parents 1c0915da48c6
children 85e1beadacb0
rev   line source
379
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
1 # -*- coding: utf-8 -*-
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
2 #
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
3 # Copyright (C) 2008 Edgewall Software
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
4 # All rights reserved.
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
5 #
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
6 # This software is licensed as described in the file COPYING, which
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
7 # you should have received as part of this distribution. The terms
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
8 # are also available at http://babel.edgewall.org/wiki/License.
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
9 #
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
10 # This software consists of voluntary contributions made by many
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
11 # individuals. For the exact contribution history, see the revision
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
12 # history and logs, available at http://babel.edgewall.org/log/.
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
13
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
14 import doctest
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
15 import unittest
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
16
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
17 from babel.messages import plurals
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
18
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
19 def suite():
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
20 suite = unittest.TestSuite()
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
21 suite.addTest(doctest.DocTestSuite(plurals))
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
22 return suite
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
23
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
24 if __name__ == '__main__':
1c0915da48c6 Ported [407:415/trunk] back to 0.9.x branch.
cmlenz
parents:
diff changeset
25 unittest.main(defaultTest='suite')
Copyright (C) 2012-2017 Edgewall Software