Changeset View
Changeset View
Standalone View
Standalone View
test/functional/interface_bitcoin_cli.py
Show All 14 Lines | class TestBitcoinCli(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
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""" | ||||
cli_response = self.nodes[0].cli("-version").send_cli() | |||||
assert("Bitcoin Core RPC client version" in cli_response) | |||||
Fabien: `Bitcoin Core` => `Bitcoin ABC` | |||||
deadalnixAuthorUnsubmitted Done Inline ActionsWhich begs the question: how did htis test ended up passing at all? deadalnix: Which begs the question: how did htis test ended up passing at all? | |||||
FabienUnsubmitted Not Done Inline ActionsHe did not :) Fabien: He did not :) | |||||
self.log.info( | self.log.info( | ||||
"Compare responses from gewalletinfo RPC and `bitcoin-cli getwalletinfo`") | "Compare responses from gewalletinfo RPC and `bitcoin-cli getwalletinfo`") | ||||
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`") | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |
Bitcoin Core => Bitcoin ABC