Beispiel #1
0
 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")
Beispiel #2
0
 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')
Beispiel #3
0
 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")
Beispiel #4
0
 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")
Beispiel #5
0
 def test_simple(self):
     s1 = i18n.ungettext('%d foo', '%d foos', 1)
     s2 = i18n.ungettext('%d foo', '%d foos', 42)
Beispiel #6
0
 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")
Beispiel #7
0
 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')
Beispiel #8
0
 def test_simple(self):
     s1 = i18n.ungettext('%d foo', '%d foos', 1)
     s2 = i18n.ungettext('%d foo', '%d foos', 42)
Beispiel #9
0
 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')
Beispiel #10
0
 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')