Changeset View
Changeset View
Standalone View
Standalone View
test/functional/tool_wallet.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2018 The Bitcoin Core developers | # Copyright (c) 2018 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. | ||||
"""Test bitcoin-wallet.""" | """Test bitcoin-wallet.""" | ||||
import subprocess | import subprocess | ||||
import textwrap | import textwrap | ||||
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 ToolWalletTest(BitcoinTestFramework): | class ToolWalletTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.rpc_timeout = 120 | |||||
def skip_test_if_missing_module(self): | def skip_test_if_missing_module(self): | ||||
self.skip_if_no_wallet() | self.skip_if_no_wallet() | ||||
self.skip_if_no_wallet_tool() | self.skip_if_no_wallet_tool() | ||||
def bitcoin_wallet_process(self, *args): | def bitcoin_wallet_process(self, *args): | ||||
binary = self.config["environment"]["BUILDDIR"] + \ | binary = self.config["environment"]["BUILDDIR"] + \ | ||||
'/src/bitcoin-wallet' + self.config["environment"]["EXEEXT"] | '/src/bitcoin-wallet' + self.config["environment"]["EXEEXT"] | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |