def test_api_get_block_transaction_count_by_height(): client = EpochClient() previous_height = client.get_height() - 1 transaction_count = client.get_block_transaction_count_by_height( previous_height) print(transaction_count.count) assert transaction_count.count >= 0
def test_api_get_block_by_heigt(): client = EpochClient() height = client.get_height() block = client.get_key_block_by_height(height) # assert type(block) == BlockWithTx assert block.height > 0