diff babel/messages/tests/pofile.py @ 445:766ddd5161c8 trunk

More than two plural forms work nowadays. Adjust the test.
author jruigrok
date Fri, 19 Feb 2010 14:12:41 +0000
parents a4eb4ea8d6f9
children 458384f70395
line wrap: on
line diff
--- a/babel/messages/tests/pofile.py
+++ b/babel/messages/tests/pofile.py
@@ -215,14 +215,14 @@
         buf = StringIO(r'''msgid "foo"
 msgid_plural "foo"
 msgstr[0] "Voh"
-msgstr[1] "Vohs"''') # last translation form is missing
-#msgstr[2] "Vohss"''')
+msgstr[1] "Vohs"
+msgstr[2] "Vohss"''')
         catalog = pofile.read_po(buf, locale='lv_LV')
         self.assertEqual(1, len(catalog))
         self.assertEqual(3, catalog.num_plurals)
         message = catalog['foo']
         self.assertEqual(3, len(message.string))
-        self.assertEqual('', message.string[2])
+        self.assertEqual(u'Vohss', message.string[2])
 
     def test_plural_with_square_brackets(self):
         buf = StringIO(r'''msgid "foo"
Copyright (C) 2012-2017 Edgewall Software