def test_format_many(self): s = i18n.ungettext('%d foo', '%d foos', 42) % 42 r = flat.ten.flatten(s, None) self.assertEqual(r, "42 foos")
def test_simple_flat_many(self): s = i18n.ungettext('%d foo', '%d foos', 42) r = flat.ten.flatten(s, None) self.assertEqual(r, '%d foos')
def test_format_one(self): s = i18n.ungettext('%d foo', '%d foos', 1) % 1 r = flat.ten.flatten(s, None) self.assertEqual(r, "1 foo")
def test_format_many(self): s = i18n.ungettext('%d foo', '%d foos', 42) % 42 r = flat.ten.flatten(s, None) self.assertEquals(r, "42 foos")
def test_simple(self): s1 = i18n.ungettext('%d foo', '%d foos', 1) s2 = i18n.ungettext('%d foo', '%d foos', 42)
def test_format_one(self): s = i18n.ungettext('%d foo', '%d foos', 1) % 1 r = flat.ten.flatten(s, None) self.assertEquals(r, "1 foo")
def test_simple_flat_many(self): s = i18n.ungettext('%d foo', '%d foos', 42) r = flat.ten.flatten(s, None) self.assertEquals(r, '%d foos')
def test_simple_flat_one(self): s = i18n.ungettext('%d foo', '%d foos', 1) r = flat.ten.flatten(s, None) self.assertEquals(r, '%d foo')
def test_simple_flat_one(self): s = i18n.ungettext('%d foo', '%d foos', 1) r = flat.ten.flatten(s, None) self.assertEqual(r, '%d foo')