Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_labels.py
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
assert_equal(len(address_group), 1) | assert_equal(len(address_group), 1) | ||||
assert_equal(len(address_group[0]), 2) | assert_equal(len(address_group[0]), 2) | ||||
assert_equal(address_group[0][1], 50) | assert_equal(address_group[0][1], 50) | ||||
linked_addresses.add(address_group[0][0]) | linked_addresses.add(address_group[0][0]) | ||||
# send 50 from each address to a third address not in this wallet | # send 50 from each address to a third address not in this wallet | ||||
common_address = "msf4WtN1YQKXvNtvdFYt9JBnUD2FB41kjr" | common_address = "msf4WtN1YQKXvNtvdFYt9JBnUD2FB41kjr" | ||||
node.sendmany( | node.sendmany( | ||||
fromaccount="", | |||||
amounts={common_address: 100}, | amounts={common_address: 100}, | ||||
subtractfeefrom=[common_address], | subtractfeefrom=[common_address], | ||||
minconf=1, | minconf=1, | ||||
) | ) | ||||
# there should be 1 address group, with the previously | # there should be 1 address group, with the previously | ||||
# unlinked addresses now linked (they both have 0 balance) | # unlinked addresses now linked (they both have 0 balance) | ||||
address_groups = node.listaddressgroupings() | address_groups = node.listaddressgroupings() | ||||
assert_equal(len(address_groups), 1) | assert_equal(len(address_groups), 1) | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |