Policies come back from the datastore!

pull/157/head
jMyles 2018-02-12 13:12:41 -08:00
parent 25477c1204
commit 6a326239f6
1 changed files with 2 additions and 2 deletions

View File

@ -25,9 +25,9 @@ def test_grant(alice, bob, ursulas):
# Let's look at the first Ursula.
ursula = list(policy._accepted_contracts.values())[0].ursula
# Get the kfrag, based in the hrac.
# Get the Policy from Ursula's datastore, looking up by hrac.
proper_hrac = keccak_digest(bytes(alice.seal) + bytes(bob.seal) + uri)
kfrag_that_was_set = ursula.keystore.get_kfrag(proper_hrac)
kfrag_that_was_set = ursula.keystore.get_policy_contract(proper_hrac)
assert kfrag_that_was_set