def test_block(): assert unicodedata.block("\x00") == "Basic Latin" assert unicodedata.block("\x7F") == "Basic Latin" assert unicodedata.block("\x80") == "Latin-1 Supplement" assert unicodedata.block("\u1c90") == "Georgian Extended" assert unicodedata.block("\u0870") == "No_Block"
def block(value): char = chr(value) return unicodedata.block(char)