Changeset View
Changeset View
Standalone View
Standalone View
test/functional/interface_bitcoin_cli.py
Show All 21 Lines | class TestBitcoinCli(BitcoinTestFramework): | ||||
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 "Bitcoin ABC RPC client version" in cli_response | ||||
self.log.info( | self.log.info( | ||||
"Compare responses from gewalletinfo 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) | ||||
self.log.info( | self.log.info( | ||||
"Compare responses from getblockchaininfo RPC and `bitcoin-cli getblockchaininfo`") | "Compare responses from getblockchaininfo RPC and `bitcoin-cli getblockchaininfo`") | ||||
cli_response = self.nodes[0].cli.getblockchaininfo() | cli_response = self.nodes[0].cli.getblockchaininfo() | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |