aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_labels.py
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2019-10-28 14:54:41 +0100
committerJon Atack <jon@atack.com>2019-11-24 23:07:10 +0100
commit0f3539ac6d772fc646b5f184fa1efe77bf632f6a (patch)
treeb61fd8109e1f6e504ca45815e54fe677bdff500c /test/functional/wallet_labels.py
parent1388de83900eaced906d369fe9e8887ae74b2dcf (diff)
test: add listlabels test in wallet_labels.py
Diffstat (limited to 'test/functional/wallet_labels.py')
-rwxr-xr-xtest/functional/wallet_labels.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/wallet_labels.py b/test/functional/wallet_labels.py
index b71dae9f40..2af8d2abac 100755
--- a/test/functional/wallet_labels.py
+++ b/test/functional/wallet_labels.py
@@ -152,14 +152,13 @@ class Label:
def verify(self, node):
if self.receive_address is not None:
assert self.receive_address in self.addresses
-
for address in self.addresses:
assert_equal(
node.getaddressinfo(address)['labels'][0],
{"name": self.name,
"purpose": self.purpose[address]})
assert_equal(node.getaddressinfo(address)['label'], self.name)
-
+ assert self.name in node.listlabels()
assert_equal(
node.getaddressesbylabel(self.name),
{address: {"purpose": self.purpose[address]} for address in self.addresses})