From 6a326239f6e408454fab1a933d6cfb1f239959ff Mon Sep 17 00:00:00 2001 From: jMyles Date: Mon, 12 Feb 2018 13:12:41 -0800 Subject: [PATCH] Policies come back from the datastore! --- tests/characters/test_alice_can_grant_and_revoke.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/characters/test_alice_can_grant_and_revoke.py b/tests/characters/test_alice_can_grant_and_revoke.py index 9596595f2..de9bffa31 100644 --- a/tests/characters/test_alice_can_grant_and_revoke.py +++ b/tests/characters/test_alice_can_grant_and_revoke.py @@ -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