def test_function_checksum(self):
data = []
h = hashlib.sha1()
for i in range(0x10000):
char = unichr(i)
data = [
# Properties
str(self.db.digit(char, -1)),
str(self.db.numeric(char, -1)),
str(self.db.decimal(char, -1)),
self.db.category(char),
self.db.bidirectional(char),
self.db.decomposition(char),
str(self.db.mirrored(char)),
str(self.db.combining(char)),
]
h.update(''.join(data))
result = h.hexdigest()
self.assertEqual(result, self.expectedchecksum)
test_unicodedata.py 文件源码
python
阅读 17
收藏 0
点赞 0
评论 0
评论列表
文章目录