mirror of https://github.com/nucypher/nucypher.git
Amonia needs to remember not to publish TreasureMaps, lest her gig being discovered too soon.
parent
1a20bbb151
commit
8f248100ff
|
@ -56,7 +56,7 @@ def test_policy_simple_sinpa(blockchain_ursulas, blockchain_alice, blockchain_bo
|
||||||
def test_try_to_post_free_arrangement_by_hacking_enact(blockchain_ursulas, blockchain_alice, blockchain_bob, agency,
|
def test_try_to_post_free_arrangement_by_hacking_enact(blockchain_ursulas, blockchain_alice, blockchain_bob, agency,
|
||||||
testerchain):
|
testerchain):
|
||||||
"""
|
"""
|
||||||
This time we won't rely on the tabulation in Alice's enact to catch the problem.
|
This time we won't rely on the tabulation in Alice's enact() to catch the problem.
|
||||||
"""
|
"""
|
||||||
amonia = Amonia.from_lawful_alice(blockchain_alice)
|
amonia = Amonia.from_lawful_alice(blockchain_alice)
|
||||||
# Setup the policy details
|
# Setup the policy details
|
||||||
|
@ -69,7 +69,8 @@ def test_try_to_post_free_arrangement_by_hacking_enact(blockchain_ursulas, block
|
||||||
m=2,
|
m=2,
|
||||||
n=n,
|
n=n,
|
||||||
rate=int(1e18), # one ether
|
rate=int(1e18), # one ether
|
||||||
expiration=policy_end_datetime)
|
expiration=policy_end_datetime,
|
||||||
|
publish_treasure_map=False)
|
||||||
|
|
||||||
for ursula in blockchain_ursulas:
|
for ursula in blockchain_ursulas:
|
||||||
# Even though the grant executed without error...
|
# Even though the grant executed without error...
|
||||||
|
@ -111,7 +112,8 @@ def test_pay_a_flunky_instead_of_the_arranged_ursula(blockchain_alice, blockchai
|
||||||
m=2,
|
m=2,
|
||||||
n=n,
|
n=n,
|
||||||
rate=int(1e18), # one ether
|
rate=int(1e18), # one ether
|
||||||
expiration=policy_end_datetime)
|
expiration=policy_end_datetime,
|
||||||
|
publish_treasure_map=False)
|
||||||
|
|
||||||
# Same exact set of assertions as the last test:
|
# Same exact set of assertions as the last test:
|
||||||
for ursula in blockchain_ursulas:
|
for ursula in blockchain_ursulas:
|
||||||
|
|
Loading…
Reference in New Issue