From: Jeroen Ruigrok van der Werven Date: Fri, 19 Feb 2010 14:12:41 +0000 (+0000) Subject: More than two plural forms work nowadays. Adjust the test. X-Git-Tag: 1.0~245 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bccc7b36bd7acb2c42c242bcb900dc010aad142;p=thirdparty%2Fbabel.git More than two plural forms work nowadays. Adjust the test. --- diff --git a/babel/messages/tests/pofile.py b/babel/messages/tests/pofile.py index 9416a50f..e242ac7e 100644 --- a/babel/messages/tests/pofile.py +++ b/babel/messages/tests/pofile.py @@ -215,14 +215,14 @@ msgstr[1] "Vohs"''') 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"