def test_random_charnames(self):
     for chr, name in self.charlist:
         assert unicodedb_4_1_0.name(ord(chr)) == name
         assert unicodedb_4_1_0.lookup(name) == ord(chr)
Пример #2
0
 def test_hangul_difference_410(self):
     assert unicodedb_4_1_0.name(40874) == 'CJK UNIFIED IDEOGRAPH-9FAA'
 def test_hangul_difference_410(self):
     assert unicodedb_4_1_0.name(40874) == 'CJK UNIFIED IDEOGRAPH-9FAA'
Пример #4
0
 def test_random_charnames(self):
     for chr, name in self.charlist:
         assert unicodedb_4_1_0.name(ord(chr)) == name
         assert unicodedb_4_1_0.lookup(name) == ord(chr)