Skip to content

Commit

Permalink
test: add listlabels test in wallet_labels.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatack committed Nov 24, 2019
1 parent 1388de8 commit 0f3539a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/functional/wallet_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,13 @@ def add_receive_address(self, address):
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})
Expand Down

0 comments on commit 0f3539a

Please sign in to comment.