From db384bf7c269d1246ca06f1f2768b3d89d03d880 Mon Sep 17 00:00:00 2001 From: Kieran Prasch Date: Tue, 16 Oct 2018 12:54:02 -0700 Subject: [PATCH] Keep compiler test module from being left beind: needs cleanup --- .../blockchain/eth/interfaces/test_solidity_compiler.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/blockchain/eth/interfaces/test_solidity_compiler.py diff --git a/tests/blockchain/eth/interfaces/test_solidity_compiler.py b/tests/blockchain/eth/interfaces/test_solidity_compiler.py new file mode 100644 index 000000000..a08cb4b21 --- /dev/null +++ b/tests/blockchain/eth/interfaces/test_solidity_compiler.py @@ -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