Commit c6ec435 1 parent b23549f commit c6ec435 Copy full SHA for c6ec435
File tree 2 files changed +27
-0
lines changed
2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change
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
8
+
9
+ class TestBitcoinCli (BitcoinTestFramework ):
10
+
11
+ def __init__ (self ):
12
+ super ().__init__ ()
13
+ self .setup_clean_chain = True
14
+ self .num_nodes = 1
15
+
16
+ def run_test (self ):
17
+ """Main test logic"""
18
+
19
+ self .log .info ("Compare responses from getinfo RPC and `bitcoin-cli getinfo`" )
20
+ cli_get_info = self .nodes [0 ].cli .getinfo ()
21
+ rpc_get_info = self .nodes [0 ].getinfo ()
22
+
23
+ assert_equal (cli_get_info , rpc_get_info )
24
+
25
+ if __name__ == '__main__' :
26
+ TestBitcoinCli ().main ()
Original file line number Diff line number Diff line change 81
81
# vv Tests less than 30s vv
82
82
'keypool-topup.py' ,
83
83
'zmq_test.py' ,
84
+ 'bitcoin_cli.py' ,
84
85
'mempool_resurrect_test.py' ,
85
86
'txn_doublespend.py --mineblock' ,
86
87
'txn_clone.py' ,
You can’t perform that action at this time.
0 commit comments