2017-12-15 05:21:51 +00:00
|
|
|
def test_alice_enacts_policies_in_policy_group_via_rest(enacted_policy):
|
2017-12-01 20:54:33 +00:00
|
|
|
"""
|
|
|
|
Now that Alice has made a PolicyGroup, she can enact its policies, using Ursula's Public Key to encrypt each offer
|
|
|
|
and transmitting them via REST.
|
|
|
|
"""
|
2018-04-02 04:16:51 +00:00
|
|
|
ursula = list(enacted_policy._accepted_arrangements.values())[0].ursula
|
|
|
|
policy_arrangement = ursula.datastore.get_policy_arrangement(enacted_policy.hrac().hex().encode())
|
|
|
|
assert bool(policy_arrangement) # TODO: This can be a more poignant assertion.
|