[tests] fixups from set_test_params()
[bitcoinplatinum.git] / test / functional / bitcoin_cli.py
blob7acfede3f7a5f3d8087c050c38ec57ba7211cb4b
1 #!/usr/bin/env python3
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.
5 """Test bitcoin-cli"""
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
13 self.num_nodes = 1
15 def run_test(self):
16 """Main test logic"""
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()