Mercurial > babel > old > babel-test
changeset 445:1056b2e7bad2
More than two plural forms work nowadays. Adjust the test.
author | jruigrok |
---|---|
date | Fri, 19 Feb 2010 14:12:41 +0000 |
parents | 02c3b114a122 |
children | 02a4a0f6e6d0 |
files | babel/messages/tests/pofile.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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"