diff options
author | Joao Fonseca <jpdf.fonseca@gmail.com> | 2016-04-19 12:22:11 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-04-19 16:37:14 +0200 |
commit | 6862627ce6bc04e68801f026629932987c3ab424 (patch) | |
tree | cbac56de6ad52eebe40e23048a8e3293c6f2ad9d /qa/rpc-tests/keypool.py | |
parent | 28ba22c20209c88a6a903729d3935e836ed0cf1a (diff) | |
download | bitcoin-6862627ce6bc04e68801f026629932987c3ab424.tar.xz |
Add listunspent() test for spendable/unspendable UTXO
Github-Pull: #7822
Rebased-From: fa942c755ab513829dcab27487ba1e7ab5a806ee 5d217decc1145823a3c126658c82c60cf7dbfec8
Diffstat (limited to 'qa/rpc-tests/keypool.py')
-rwxr-xr-x | qa/rpc-tests/keypool.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/qa/rpc-tests/keypool.py b/qa/rpc-tests/keypool.py index 5253d49c30..b86c085e00 100755 --- a/qa/rpc-tests/keypool.py +++ b/qa/rpc-tests/keypool.py @@ -10,28 +10,6 @@ from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * - -def check_array_result(object_array, to_match, expected): - """ - Pass in array of JSON objects, a dictionary with key/value pairs - to match against, and another dictionary with expected key/value - pairs. - """ - num_matched = 0 - for item in object_array: - all_match = True - for key,value in to_match.items(): - if item[key] != value: - all_match = False - if not all_match: - continue - for key,value in expected.items(): - if item[key] != value: - raise AssertionError("%s : expected %s=%s"%(str(item), str(key), str(value))) - num_matched = num_matched+1 - if num_matched == 0: - raise AssertionError("No objects matched %s"%(str(to_match))) - class KeyPoolTest(BitcoinTestFramework): def run_test(self): |