Changeset View
Changeset View
Standalone View
Standalone View
test/functional/interface_bitcoin_cli.py
Show All 18 Lines | class TestBitcoinCli(BitcoinTestFramework): | ||||
def skip_test_if_missing_module(self): | def skip_test_if_missing_module(self): | ||||
self.skip_if_no_cli() | self.skip_if_no_cli() | ||||
def run_test(self): | def run_test(self): | ||||
"""Main test logic""" | """Main test logic""" | ||||
cli_response = self.nodes[0].cli("-version").send_cli() | cli_response = self.nodes[0].cli("-version").send_cli() | ||||
assert "Bitcoin ABC RPC client version" in cli_response | assert "{} RPC client version".format( | ||||
self.config['environment']['PACKAGE_NAME']) in cli_response | |||||
self.log.info( | self.log.info( | ||||
"Compare responses from getwalletinfo RPC and `bitcoin-cli getwalletinfo`") | "Compare responses from getwalletinfo RPC and `bitcoin-cli getwalletinfo`") | ||||
if self.is_wallet_compiled(): | if self.is_wallet_compiled(): | ||||
cli_response = self.nodes[0].cli.getwalletinfo() | cli_response = self.nodes[0].cli.getwalletinfo() | ||||
rpc_response = self.nodes[0].getwalletinfo() | rpc_response = self.nodes[0].getwalletinfo() | ||||
assert_equal(cli_response, rpc_response) | assert_equal(cli_response, rpc_response) | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |