]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Fix testcase name typo.
authorJeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Fri, 19 Feb 2010 13:16:08 +0000 (13:16 +0000)
committerJeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Fri, 19 Feb 2010 13:16:08 +0000 (13:16 +0000)
Switch to use a locale that uses a different singular and plural form instead
of just one form for both singular and plural.

babel/messages/tests/pofile.py

index f28648e642c3198255bec0cbe1f3084380db0590..57a263114116e6b2cbbfc49d369da824c98ded06 100644 (file)
@@ -190,16 +190,16 @@ msgstr "Bahr"
         pofile.write_po(out_buf, catalog, omit_header=True)
         assert out_buf.getvalue().strip() == buf.getvalue().strip(), out_buf.getvalue()
 
-    def test_singlular_plural_form(self):
+    def test_singular_plural_form(self):
         buf = StringIO(r'''msgid "foo"
 msgid_plural "foo"
 msgstr[0] "Voh"
-msgstr[1] "Vohs"''') # This is a bad po, ja_JP only uses msgstr[0]
-        catalog = pofile.read_po(buf, locale='ja_JP')
+msgstr[1] "Vohs"''')
+        catalog = pofile.read_po(buf, locale='nl_NL')
         self.assertEqual(1, len(catalog))
-        self.assertEqual(1, catalog.num_plurals)
+        self.assertEqual(2, catalog.num_plurals)
         message = catalog['foo']
-        self.assertEqual(1, len(message.string))
+        self.assertEqual(2, len(message.string))
 
     def test_plural_with_square_brackets(self):
         buf = StringIO(r'''msgid "foo"