From 7e831faa39c047b7d5daaef92e840aeb7c7f5029 Mon Sep 17 00:00:00 2001 From: Luke Van Seters Date: Mon, 9 Aug 2021 14:30:09 -0400 Subject: [PATCH] Add more examples for trace tests --- tests/test_traces.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/test_traces.py b/tests/test_traces.py index 138120c..a11a253 100644 --- a/tests/test_traces.py +++ b/tests/test_traces.py @@ -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,