diff options
author | Jon Atack <jon@atack.com> | 2019-10-28 11:11:20 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2019-11-24 23:08:38 +0100 |
commit | 33f5fc32e5bfbe1e89c4d20ce455bcc6dc194151 (patch) | |
tree | 541a9905f6291d56b1227e21827ebaaa100ca15a /test/functional/wallet_listreceivedby.py | |
parent | 0f3539ac6d772fc646b5f184fa1efe77bf632f6a (diff) |
test: add rpc getaddressinfo labels test coverage
Diffstat (limited to 'test/functional/wallet_listreceivedby.py')
-rwxr-xr-x | test/functional/wallet_listreceivedby.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/wallet_listreceivedby.py b/test/functional/wallet_listreceivedby.py index efa6a199ad..afd473306d 100755 --- a/test/functional/wallet_listreceivedby.py +++ b/test/functional/wallet_listreceivedby.py @@ -11,6 +11,10 @@ from test_framework.util import ( assert_equal, assert_raises_rpc_error, ) +from test_framework.wallet_util import ( + labels_value, + test_address, +) class ReceivedByTest(BitcoinTestFramework): @@ -127,7 +131,7 @@ class ReceivedByTest(BitcoinTestFramework): # set pre-state label = '' address = self.nodes[1].getnewaddress() - assert_equal(self.nodes[1].getaddressinfo(address)['label'], label) + test_address(self.nodes[1], address, label=label, labels=labels_value(name=label)) received_by_label_json = [r for r in self.nodes[1].listreceivedbylabel() if r["label"] == label][0] balance_by_label = self.nodes[1].getreceivedbylabel(label) |