Ejemplo n.º 1
0
 def test_ascii(self):
     for record in genc.REGIONS:
         assert record.name != ''
         trans = transliterate(record.name)
         non_ascii = [c for c in trans if ord(c) > 127]
         assert non_ascii == []
Ejemplo n.º 2
0
 def test_ascii(self):
     for record in genc.REGIONS:
         self.assertNotEqual(record.name, '')
         trans = transliterate(record.name)
         non_ascii = [c for c in trans if ord(c) > 127]
         self.assertEqual(non_ascii, [])
 def test_ascii(self):
     for record in genc.REGIONS:
         assert record.name != ''
         trans = transliterate(record.name)
         non_ascii = [c for c in trans if ord(c) > 127]
         assert non_ascii == []
Ejemplo n.º 4
0
 def test_transliterate(self):
     for record in iso3166._records:
         trans = transliterate(record.apolitical_name)
         non_ascii = [c for c in trans if ord(c) > 127]
         self.assertEqual(len(non_ascii), 0)
Ejemplo n.º 5
0
 def test_countries(self):
     for country in _countries():
         trans = transliterate(country.name)
         non_ascii = [c for c in trans if ord(c) > 127]
         self.assertEqual(len(non_ascii), 0)
Ejemplo n.º 6
0
 def test_countries(self):
     for country in _countries():
         trans = transliterate(country.name)
         non_ascii = [c for c in trans if ord(c) > 127]
         self.assertEqual(len(non_ascii), 0)
Ejemplo n.º 7
0
 def test_ascii(self):
     for record in genc.REGIONS:
         self.assertNotEqual(record.name, '')
         trans = transliterate(record.name)
         non_ascii = [c for c in trans if ord(c) > 127]
         self.assertEqual(non_ascii, [])