Changeset View
Changeset View
Standalone View
Standalone View
test/functional/interface_bitcoin_cli.py
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
'-rpccookiefile=does-not-exist', '-rpcpassword=').echo) | '-rpccookiefile=does-not-exist', '-rpcpassword=').echo) | ||||
self.log.info("Make sure that -getinfo with arguments fails") | self.log.info("Make sure that -getinfo with arguments fails") | ||||
assert_raises_process_error( | assert_raises_process_error( | ||||
1, "-getinfo takes no arguments", self.nodes[0].cli('-getinfo').help) | 1, "-getinfo takes no arguments", self.nodes[0].cli('-getinfo').help) | ||||
self.log.info( | self.log.info( | ||||
"Compare responses from `bitcoin-cli -getinfo` and the RPCs data is retrieved from.") | "Compare responses from `bitcoin-cli -getinfo` and the RPCs data is retrieved from.") | ||||
cli_get_info = self.nodes[0].cli().send_cli('-getinfo') | cli_get_info = self.nodes[0].cli('-getinfo').send_cli() | ||||
wallet_info = self.nodes[0].getwalletinfo() | wallet_info = self.nodes[0].getwalletinfo() | ||||
network_info = self.nodes[0].getnetworkinfo() | network_info = self.nodes[0].getnetworkinfo() | ||||
blockchain_info = self.nodes[0].getblockchaininfo() | blockchain_info = self.nodes[0].getblockchaininfo() | ||||
assert_equal(cli_get_info['version'], network_info['version']) | assert_equal(cli_get_info['version'], network_info['version']) | ||||
assert_equal(cli_get_info['protocolversion'], | assert_equal(cli_get_info['protocolversion'], | ||||
network_info['protocolversion']) | network_info['protocolversion']) | ||||
assert_equal(cli_get_info['walletversion'], | assert_equal(cli_get_info['walletversion'], | ||||
Show All 21 Lines |