mirror of https://github.com/nucypher/nucypher.git
More questioning of actor lookup.
parent
4d677f4d03
commit
5415184d0b
|
@ -72,12 +72,14 @@ def test_trying_to_find_unknown_actor_raises_not_found(alice):
|
|||
signature = alice.seal(message)
|
||||
|
||||
# Tony can't reference Alice...
|
||||
with pytest.raises(Character.NotFound):
|
||||
verification = tony_clifton.verify_from(alice, signature, message)
|
||||
|
||||
# TODO: This may not actually be necessary anymore since we are mostly doing Character.from_public_keys()
|
||||
# with pytest.raises(Character.NotFound):
|
||||
# verification = tony_clifton.verify_from(alice, message, signature)
|
||||
|
||||
# ...before learning about Alice.
|
||||
tony_clifton.learn_about_actor(alice)
|
||||
verification, NO_DECRYPTION_PERFORMED = tony_clifton.verify_from(alice, message, signature)
|
||||
verification, NO_DECRYPTION_PERFORMED = tony_clifton.verify_from(alice, message, signature=signature)
|
||||
|
||||
assert verification is True
|
||||
|
||||
|
|
Loading…
Reference in New Issue