Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet-accounts.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2016 The Bitcoin Core developers | # Copyright (c) 2016 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
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 WalletAccountsTest(BitcoinTestFramework): | class WalletAccountsTest(BitcoinTestFramework): | ||||
def set_test_params(self): | |||||
def __init__(self): | |||||
super().__init__() | |||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.extra_args = [[]] | self.extra_args = [[]] | ||||
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) | ||||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |