Add more examples for trace tests

This commit is contained in:
Luke Van Seters 2021-08-09 14:30:09 -04:00
parent f73a34a5ba
commit 7e831faa39

View File

@ -98,6 +98,22 @@ def test_get_child_traces(get_transaction_hashes):
first_hash_trace_addresses[1:],
)
assert has_expected_child_traces(
first_hash,
[0],
traces,
[
[0, 0],
],
)
assert has_expected_child_traces(
second_hash,
[2],
traces,
[],
)
def has_expected_child_traces(
transaction_hash: str,