mirror of https://github.com/nucypher/pyUmbral.git
Add a check to cover Signature.__eq__
parent
d5b9d7c3a1
commit
0a972aa0a8
|
@ -76,6 +76,7 @@ def test_signature_is_hashable():
|
|||
assert hash(signature) != hash(signature2)
|
||||
|
||||
signature_restored = Signature.from_bytes(bytes(signature))
|
||||
assert signature == signature_restored
|
||||
assert hash(signature) == hash(signature_restored)
|
||||
|
||||
# Different hash, since signing involves some randomness
|
||||
|
|
Loading…
Reference in New Issue