def test_plural(self): entry = POEntry() entry.msgid = "A lovely day for a cup of tea." entry.msgid_plural = "A lovely day for some cups of tea." expected_s = u"À lövélý däý för ä çüp öf téä. Ⱡ'σяєм #" expected_p = u"À lövélý däý för sömé çüps öf téä. Ⱡ'σяєм ιρ#" self.converter.convert_msg(entry) result = entry.msgstr_plural self.assertUnicodeEquals(result['0'], expected_s) self.assertUnicodeEquals(result['1'], expected_p)
def test_plural(self): entry = POEntry() entry.msgid = 'A lovely day for a cup of tea.' entry.msgid_plural = 'A lovely day for some cups of tea.' expected_s = u'\xc0 l\xf6v\xe9ly d\xe4y f\xf6r \xe4 \xe7\xfcp \xf6f t\xe9\xe4. Lorem i#' expected_p = u'\xc0 l\xf6v\xe9ly d\xe4y f\xf6r s\xf6m\xe9 \xe7\xfcps \xf6f t\xe9\xe4. Lorem ip#' self.converter.convert_msg(entry) result = entry.msgstr_plural self.assertEquals(result['0'], expected_s) self.assertEquals(result['1'], expected_p)
def test_plural(self): entry = POEntry() entry.msgid = "A lovely day for a cup of tea." entry.msgid_plural = "A lovely day for some cups of tea." expected_s = u"À løvélý däý før ä çüp øf téä. Ⱡ'σяєм #" expected_p = u"À løvélý däý før sømé çüps øf téä. Ⱡ'σяєм ιρ#" self.converter.convert_msg(entry) result = entry.msgstr_plural self.assertUnicodeEquals(result['0'], expected_s) self.assertUnicodeEquals(result['1'], expected_p)
def test_plural(self): entry = POEntry() entry.msgid = "A lovely day for a cup of tea." entry.msgid_plural = "A lovely day for some cups of tea." expected_s = u"À lövélý däý för ä çüp öf téä. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢т#" expected_p = u"À lövélý däý för sömé çüps öf téä. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєт#" self.converter.convert_msg(entry) result = entry.msgstr_plural self.assertUnicodeEquals(result['0'], expected_s) self.assertUnicodeEquals(result['1'], expected_p)
def test_plural(self): entry = POEntry() entry.msgid = 'A lovely day for a cup of tea.' entry.msgid_plural = 'A lovely day for some cups of tea.' expected_s = u'À løvélý däý før ä çüp øf téä. Ⱡσяєм ι#' expected_p = u'À løvélý däý før sømé çüps øf téä. Ⱡσяєм ιρ#' self.converter.convert_msg(entry) result = entry.msgstr_plural self.assertUnicodeEquals(result['0'], expected_s) self.assertUnicodeEquals(result['1'], expected_p)
def test_singular(self): entry = POEntry() entry.msgid = "A lovely day for a cup of tea." expected = u"À lövélý däý för ä çüp öf téä. Ⱡ'σяєм #" self.converter.convert_msg(entry) self.assertUnicodeEquals(entry.msgstr, expected)
def test_singular(self): entry = POEntry() entry.msgid = 'A lovely day for a cup of tea.' expected = u'\xc0 l\xf6v\xe9ly d\xe4y f\xf6r \xe4 \xe7\xfcp \xf6f t\xe9\xe4. Lorem i#' self.converter.convert_msg(entry) self.assertEquals(entry.msgstr, expected)
def test_singular(self): entry = POEntry() entry.msgid = "A lovely day for a cup of tea." expected = u"À løvélý däý før ä çüp øf téä. Ⱡ'σяєм #" self.converter.convert_msg(entry) self.assertUnicodeEquals(entry.msgstr, expected)
def test_singular(self): entry = POEntry() entry.msgid = "A lovely day for a cup of tea." expected = u"À lövélý däý för ä çüp öf téä. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢т#" self.converter.convert_msg(entry) self.assertUnicodeEquals(entry.msgstr, expected)
def test_singular(self): entry = POEntry() entry.msgid = 'A lovely day for a cup of tea.' expected = u'À løvélý däý før ä çüp øf téä. Ⱡσяєм ι#' self.converter.convert_msg(entry) self.assertUnicodeEquals(entry.msgstr, expected)