aboutsummaryrefslogtreecommitdiff
path: root/test/functional/bitcoin_cli.py
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-07-16 19:29:08 -0400
committerMatt Corallo <git@bluematt.me>2017-09-06 16:10:04 -0700
commitaece8a4637f0d097e4be497bc82d59b37244d245 (patch)
tree11567fae24b604ce4eb35f0704d51c7081e231ff /test/functional/bitcoin_cli.py
parent961901f77e55aa07d5048000d57bcd218ae74b08 (diff)
(finally) remove getinfo in favor of more module-specific infos
Diffstat (limited to 'test/functional/bitcoin_cli.py')
-rwxr-xr-xtest/functional/bitcoin_cli.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/functional/bitcoin_cli.py b/test/functional/bitcoin_cli.py
index 7acfede3f7..04847252eb 100755
--- a/test/functional/bitcoin_cli.py
+++ b/test/functional/bitcoin_cli.py
@@ -15,9 +15,15 @@ class TestBitcoinCli(BitcoinTestFramework):
def run_test(self):
"""Main test logic"""
- self.log.info("Compare responses from getinfo RPC and `bitcoin-cli getinfo`")
- cli_get_info = self.nodes[0].cli.getinfo()
- rpc_get_info = self.nodes[0].getinfo()
+ self.log.info("Compare responses from gewalletinfo RPC and `bitcoin-cli getwalletinfo`")
+ cli_get_info = self.nodes[0].cli.getwalletinfo()
+ rpc_get_info = self.nodes[0].getwalletinfo()
+
+ assert_equal(cli_get_info, rpc_get_info)
+
+ self.log.info("Compare responses from getblockchaininfo RPC and `bitcoin-cli getblockchaininfo`")
+ cli_get_info = self.nodes[0].cli.getblockchaininfo()
+ rpc_get_info = self.nodes[0].getblockchaininfo()
assert_equal(cli_get_info, rpc_get_info)