91 | @@ -92,17 +92,25 @@ def _run_subtest(self, accounts_api, node):
92 | # recognize the label/address associations.
93 | labels = [Label(name, accounts_api) for name in ("a", "b", "c", "d", "e")]
94 | for label in labels:
95 | - label.add_receive_address(node.getlabeladdress(label=label.name, force=True))
96 | + if accounts_api:
97 | + address = node.getaccountaddress(label.name)
98 | + else:
99 | + address = node.getnewaddress()
address = node.getnewaddress(label.name)?
(or is the point here to test setlabel?)
No, yours is better. setlabel is tested further down.
Fixed and pushed the new version.