Esempio n. 1
0
 def test_some_additions(self):
     additions = {
         ord(u"\u20B9"): 'INDIAN RUPEE SIGN',
         # u'\U0001F37A'
         127866: 'BEER MUG',
         # u'\U0001F37B'
         127867: 'CLINKING BEER MUGS',
         # u"\U0001F0AD"
         127149: 'PLAYING CARD QUEEN OF SPADES',
         # u"\U0002B740"
         177984: "CJK UNIFIED IDEOGRAPH-2B740",
         }
     for un, name in additions.iteritems():
         assert unicodedb_6_0_0.name(un) == name
         assert unicodedb_6_0_0.isprintable(un)
Esempio n. 2
0
 def test_some_additions(self):
     additions = {
         ord(u"\u20B9"): 'INDIAN RUPEE SIGN',
         # u'\U0001F37A'
         127866: 'BEER MUG',
         # u'\U0001F37B'
         127867: 'CLINKING BEER MUGS',
         # u"\U0001F0AD"
         127149: 'PLAYING CARD QUEEN OF SPADES',
         # u"\U0002B740"
         177984: "CJK UNIFIED IDEOGRAPH-2B740",
     }
     for un, name in additions.iteritems():
         assert unicodedb_6_0_0.name(un) == name
         assert unicodedb_6_0_0.isprintable(un)