Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_labels.py
Show All 16 Lines | |||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import assert_equal | from test_framework.util import assert_equal | ||||
class WalletLabelsTest(BitcoinTestFramework): | class WalletLabelsTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.extra_args = [[]] | self.extra_args = [['-deprecatedrpc=accounts']] | ||||
def run_test(self): | def run_test(self): | ||||
node = self.nodes[0] | node = self.nodes[0] | ||||
# Check that there's no UTXO on any of the nodes | # Check that there's no UTXO on any of the nodes | ||||
assert_equal(len(node.listunspent()), 0) | assert_equal(len(node.listunspent()), 0) | ||||
# Note each time we call generate, all generated coins go into | # Note each time we call generate, all generated coins go into | ||||
# the same address, so we call twice to get two addresses w/50 each | # the same address, so we call twice to get two addresses w/50 each | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |