2 # Copyright (c) 2017 The Bitcoin Core developers
3 # Distributed under the MIT software license, see the accompanying
4 # file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 from test_framework
.test_framework
import BitcoinTestFramework
7 from test_framework
.util
import assert_equal
9 class TestBitcoinCli(BitcoinTestFramework
):
11 def set_test_params(self
):
12 self
.setup_clean_chain
= True
18 self
.log
.info("Compare responses from getinfo RPC and `bitcoin-cli getinfo`")
19 cli_get_info
= self
.nodes
[0].cli
.getinfo()
20 rpc_get_info
= self
.nodes
[0].getinfo()
22 assert_equal(cli_get_info
, rpc_get_info
)
24 if __name__
== '__main__':
25 TestBitcoinCli().main()