Skip to content

Commit

Permalink
test: replace deprecated methods in regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maltemoeser committed May 13, 2020
1 parent ba7a4ff commit 74d8a72
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions test/blockscipy/test_addresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
12 changes: 6 additions & 6 deletions test/blockscipy/test_clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 74d8a72

Please sign in to comment.