Exemple #1
0
 def test_differences(self):
     assert unicodedb_5_2_0.name(9187) == 'BENZENE RING WITH CIRCLE'
     assert unicodedb_5_2_0.lookup('BENZENE RING WITH CIRCLE') == 9187
     py.test.raises(KeyError, unicodedb_3_2_0.lookup, 'BENZENE RING WITH CIRCLE')
     py.test.raises(KeyError, unicodedb_3_2_0.name, 9187)
Exemple #2
0
 def test_hangul_difference_520(self):
     assert unicodedb_5_2_0.name(40874) == 'CJK UNIFIED IDEOGRAPH-9FAA'
Exemple #3
0
 def test_random_charnames(self):
     for chr, name in self.charlist:
         assert unicodedb_5_2_0.name(ord(chr)) == name
         assert unicodedb_5_2_0.lookup(name) == ord(chr)
Exemple #4
0
 def test_hangul_difference_520(self):
     assert unicodedb_5_2_0.name(40874) == 'CJK UNIFIED IDEOGRAPH-9FAA'
Exemple #5
0
 def test_random_charnames(self):
     for chr, name in self.charlist:
         assert unicodedb_5_2_0.name(ord(chr)) == name
         assert unicodedb_5_2_0.lookup(name) == ord(chr)
Exemple #6
0
 def test_differences(self):
     assert unicodedb_5_2_0.name(9187) == 'BENZENE RING WITH CIRCLE'
     assert unicodedb_5_2_0.lookup('BENZENE RING WITH CIRCLE') == 9187
     py.test.raises(KeyError, unicodedb_3_2_0.lookup,
                    'BENZENE RING WITH CIRCLE')
     py.test.raises(KeyError, unicodedb_3_2_0.name, 9187)