def test_hashex_hashlib():
for algorithm in hashlib.algorithms_guaranteed:
method = getattr(proxenos.rendezvous.HashMethod, algorithm.upper())
assert (proxenos.rendezvous.hashex(method, 'secret') ==
int(hashlib.new(algorithm, b'secret').hexdigest(), 16))
评论列表
文章目录