ethereum / populus

The Ethereum development framework with the most cute animal pictures
http://populus.readthedocs.org/
321 stars 321 forks source link

Weird problem while launching tests with py.test #204

Closed mortimr closed 7 years ago

mortimr commented 8 years ago

Thanks !

pipermerriam commented 7 years ago

This is expected behavior.

What you are seeing is your tests running against an in-memory EVM backed by pyethereum which is reset at the beginning of each test run. What you can test here is that pm.call().showOwner() == web3.eth.coinbase which will be the address which deploys the contract.

pipermerriam commented 7 years ago

Also, let me know if you have additional questions and feel free to re-open as well if I haven't actually answered your question.