Skip to content

Commit

Permalink
Add a test to satisfy Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
pirapira committed Apr 29, 2019
1 parent ff8dbe1 commit 5485c6b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions raiden_contracts/tests/test_deploy_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,20 @@ def test_verify_nonexistent_deployment(
token_address=FAKE_ADDRESS,
user_deposit_whole_balance_limit=user_deposit_whole_balance_limit,
)


def test_verify_existent_deployment(
user_deposit_whole_balance_limit,
):
""" Test verify_deployed_contracts_in_filesystem() with an existent deployment data. """
web3_mock = Mock()
web3_mock.version.network = 42
verifyer = ContractVerifyer(web3=web3_mock, contracts_version='0.11.1')
# The Mock doesn't return the runtime code, so the code comparison fails.
with pytest.raises(AssertionError):
verifyer.verify_deployed_contracts_in_filesystem()
with pytest.raises(AssertionError):
verifyer.verify_deployed_service_contracts_in_filesystem(
token_address='0x3Aa761BcDB064179a1e37748D8A5F577a177Be5c',
user_deposit_whole_balance_limit=2 ** 256 - 1,
)

0 comments on commit 5485c6b

Please sign in to comment.