Changeset View
Changeset View
Standalone View
Standalone View
test/functional/bitcoin_cli.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2017 The Bitcoin Core developers | # Copyright (c) 2017 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-cli""" | """Test bitcoin-cli""" | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import assert_equal, assert_raises_process_error, get_auth_cookie | from test_framework.util import assert_equal, assert_raises_process_error, get_auth_cookie | ||||
class TestBitcoinCli(BitcoinTestFramework): | class TestBitcoinCli(BitcoinTestFramework): | ||||
def __init__(self): | def set_test_params(self): | ||||
super().__init__() | |||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
def run_test(self): | def run_test(self): | ||||
"""Main test logic""" | """Main test logic""" | ||||
self.log.info( | self.log.info( | ||||
"Compare responses from gewalletinfo RPC and `bitcoin-cli getwalletinfo`") | "Compare responses from gewalletinfo RPC and `bitcoin-cli getwalletinfo`") | ||||
Show All 27 Lines |