add failing test

This commit is contained in:
Piper Merriam 2016-09-06 21:23:07 -06:00
parent ccf7f5681e
commit 3b7a6382d6

View File

@ -45,3 +45,14 @@ def test_eth_getBlock_by_hash_with_full_transactions(web3):
assert block_1_by_hash['number'] == 1
assert block_1_by_hash['hash'] == block_1_hash
assert all(isinstance(txn, dict) for txn in block_1['transactions'])
def test_eth_getBlock_using_latest(web3):
assert web3.eth.blockNumber >= 1
current_block_number = web3.eth.blockNumber
block = web3.eth.getBlock('latest')
block_number = block['number']
assert block_number >= current_block_number