From 74d8a72b46667c037f32ac6d399c1b047f320877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20Mo=CC=88ser?= Date: Tue, 7 Apr 2020 13:23:10 -0400 Subject: [PATCH] test: replace deprecated methods in regression tests --- test/blockscipy/test_addresses.py | 12 ++++++------ test/blockscipy/test_clustering.py | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/test/blockscipy/test_addresses.py b/test/blockscipy/test_addresses.py index 570c0e4c..cdaf0042 100644 --- a/test/blockscipy/test_addresses.py +++ b/test/blockscipy/test_addresses.py @@ -86,12 +86,12 @@ def test_address_regression(chain, json_data, regtest, chain_name): print(addr.balance(), file=regtest) print(addr.equiv(), file=regtest) print(addr.has_been_spent, file=regtest) - print(addr.ins.to_list(), file=regtest) - print(sorted_tx_list(addr.in_txes), file=regtest) - print(addr.in_txes_count(), file=regtest) - print(sorted_tx_list(addr.out_txes), file=regtest) - print(addr.out_txes_count(), file=regtest) - print(addr.outs.to_list(), file=regtest) + print(addr.inputs.to_list(), file=regtest) + print(sorted_tx_list(addr.input_txes), file=regtest) + print(addr.input_txes_count(), file=regtest) + print(sorted_tx_list(addr.output_txes), file=regtest) + print(addr.output_txes_count(), file=regtest) + print(addr.outputs.to_list(), file=regtest) if addr_type == "p2pkh" or addr_type == "p2wpkh": print(addr.pubkey, file=regtest) print(addr.pubkeyhash, file=regtest) diff --git a/test/blockscipy/test_clustering.py b/test/blockscipy/test_clustering.py index f8e8700a..8f486aa5 100644 --- a/test/blockscipy/test_clustering.py +++ b/test/blockscipy/test_clustering.py @@ -83,13 +83,13 @@ def test_clustering_no_change(chain, json_data, regtest, tmpdir_factory): print(cluster.count_of_type(blocksci.address_type.scripthash), file=regtest) print(cluster.count_of_type(blocksci.address_type.witness_pubkeyhash), file=regtest) print(cluster.count_of_type(blocksci.address_type.witness_scripthash), file=regtest) - print(sorted_tx_list(cluster.in_txes()), file=regtest) - print(cluster.in_txes_count(), file=regtest) - print(cluster.ins().to_list(), file=regtest) + print(sorted_tx_list(cluster.input_txes()), file=regtest) + print(cluster.input_txes_count(), file=regtest) + print(cluster.inputs().to_list(), file=regtest) print(sorted_tx_list(cluster.txes()), file=regtest) - print(sorted_tx_list(cluster.out_txes()), file=regtest) - print(cluster.out_txes_count(), file=regtest) - print(cluster.outs().to_list(), file=regtest) + print(sorted_tx_list(cluster.output_txes()), file=regtest) + print(cluster.output_txes_count(), file=regtest) + print(cluster.outputs().to_list(), file=regtest) print(cluster.address_count(), file=regtest) print(cluster.txes(), file=regtest) print(cluster.type_equiv_size, file=regtest)