Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet-accounts.py
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
# the "" account has what's expected, plus exactly the fee amount as | # the "" account has what's expected, plus exactly the fee amount as | ||||
# that's been mined and matures in the next 100 blocks. | # that's been mined and matures in the next 100 blocks. | ||||
expected_account_balances = {"": 5200 + fee} | expected_account_balances = {"": 5200 + fee} | ||||
for account in accounts: | for account in accounts: | ||||
expected_account_balances[account] = 0 | expected_account_balances[account] = 0 | ||||
assert_equal(node.listaccounts(), expected_account_balances) | assert_equal(node.listaccounts(), expected_account_balances) | ||||
# the "" account has what's expected, plus exactly the fee amount as | # the "" account has what's expected, plus exactly the fee amount as | ||||
# that's been mined and matures in the next 100 blocks. | # that's been mined and matures in the next 100 blocks. | ||||
assert_equal(node.getbalance(""), 5200 + fee) | assert_equal(node.getbalance(""), 5200 + fee) | ||||
for account in accounts: | for account in accounts: | ||||
address = node.getaccountaddress("") | address = node.getaccountaddress("") | ||||
node.setaccount(address, account) | node.setaccount(address, account) | ||||
assert(address in node.getaddressesbyaccount(account)) | assert(address in node.getaddressesbyaccount(account)) | ||||
Show All 17 Lines |