Keep compiler test module from being left beind: needs cleanup

pull/484/head
Kieran Prasch 2018-10-16 12:54:02 -07:00
parent 4502c45282
commit db384bf7c2
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
from nucypher.blockchain.eth.deployers import NucypherTokenDeployer
def test_nucypher_contract_compiled(testerchain):
# Ensure that solidity smart contacts are available, post-compile.
origin, *everybody_else = testerchain.interface.w3.eth.accounts
token_contract_identifier = NucypherTokenDeployer(blockchain=testerchain, deployer_address=origin)._contract_name
assert token_contract_identifier in testerchain.interface._BlockchainInterface__raw_contract_cache