Adds missing sanity checks in economics test. Also closes #831.

pull/947/head
David Núñez 2019-04-24 10:54:45 +02:00
parent e0cf8393e7
commit eaf79d70c6
2 changed files with 6 additions and 4 deletions

View File

@ -277,11 +277,11 @@ class Deployer(NucypherTokenActor):
) -> Dict[str, dict]: ) -> Dict[str, dict]:
""" """
Example allocation dataset (one year is 31540000 seconds): Example allocation dataset (one year is 31536000 seconds):
data = [{'address': '0xdeadbeef', 'amount': 100, 'duration': 31540000}, data = [{'address': '0xdeadbeef', 'amount': 100, 'duration': 31536000},
{'address': '0xabced120', 'amount': 133432, 'duration': 31540000*2}, {'address': '0xabced120', 'amount': 133432, 'duration': 31536000*2},
{'address': '0xf7aefec2', 'amount': 999, 'duration': 31540000*3}] {'address': '0xf7aefec2', 'amount': 999, 'duration': 31536000*3}]
""" """
if allocation_registry and allocation_outfile: if allocation_registry and allocation_outfile:
raise self.ActorError("Pass either allocation registry or allocation_outfile, not both.") raise self.ActorError("Pass either allocation registry or allocation_outfile, not both.")

View File

@ -156,6 +156,8 @@ def test_exact_economics():
# Check deployment parameters # Check deployment parameters
assert e.staking_deployment_parameters == expected_deployment_parameters assert e.staking_deployment_parameters == expected_deployment_parameters
assert e.erc20_initial_supply == expected_initial_supply
assert e.erc20_reward_supply == expected_reward_supply
def test_economic_parameter_aliases(): def test_economic_parameter_aliases():