Lines Matching refs:unicodedata
68 import unicodedata
72 code = unicodedata.lookup(name)
73 self.assertEqual(unicodedata.name(code), name)
90 import unicodedata
91 self.assertRaises(ValueError, unicodedata.name, u"\ud7a4")
102 import unicodedata
106 name = unicodedata.name(char, None)
108 self.assertEqual(unicodedata.lookup(name), char)
118 import unicodedata
119 self.assertRaises(TypeError, unicodedata.name)
120 self.assertRaises(TypeError, unicodedata.name, u'xx')
121 self.assertRaises(TypeError, unicodedata.lookup)
122 self.assertRaises(KeyError, unicodedata.lookup, u'unknown')