mirror of
https://github.com/FlipsideCrypto/web3.py.git
synced 2026-02-06 10:56:47 +00:00
add failing test
This commit is contained in:
parent
ccf7f5681e
commit
3b7a6382d6
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user