Example #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)
Example #2
0
 def test_hangul_difference_520(self):
     assert unicodedb_5_2_0.name(40874) == 'CJK UNIFIED IDEOGRAPH-9FAA'
Example #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)
Example #4
0
 def test_hangul_difference_520(self):
     assert unicodedb_5_2_0.name(40874) == 'CJK UNIFIED IDEOGRAPH-9FAA'
Example #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)
Example #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)