diff options
author | John Newbery <john@johnnewbery.com> | 2017-07-12 10:33:46 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2017-10-05 09:57:19 -0400 |
commit | 47ba8cf71e9a3a6f7452488fc9ab3b350f0fae36 (patch) | |
tree | b21f00f81ce5e933436f9418ae73f8e37f81fcd1 /test/functional/blockchain.py | |
parent | 677d893ff758b61f66203730da224bd7ef8f0b43 (diff) | |
download | bitcoin-47ba8cf71e9a3a6f7452488fc9ab3b350f0fae36.tar.xz |
scripted-diff: rename assert_raises_jsonrpc to assert_raises_rpc error
-BEGIN VERIFY SCRIPT-
sed -i 's/assert_raises_jsonrpc/assert_raises_rpc_error/g' test/functional/*py test/functional/test_framework/*py
-END VERIFY SCRIPT-
Diffstat (limited to 'test/functional/blockchain.py')
-rwxr-xr-x | test/functional/blockchain.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/blockchain.py b/test/functional/blockchain.py index 5bd3bc8f83..d4851eea49 100755 --- a/test/functional/blockchain.py +++ b/test/functional/blockchain.py @@ -25,7 +25,7 @@ from test_framework.test_framework import BitcoinTestFramework from test_framework.util import ( assert_equal, assert_raises, - assert_raises_jsonrpc, + assert_raises_rpc_error, assert_is_hex_string, assert_is_hash_string, ) @@ -101,7 +101,7 @@ class BlockchainTest(BitcoinTestFramework): assert('window_interval' not in chaintxstats) assert('txrate' not in chaintxstats) - assert_raises_jsonrpc(-8, "Invalid block count: should be between 0 and the block's height - 1", self.nodes[0].getchaintxstats, 201) + assert_raises_rpc_error(-8, "Invalid block count: should be between 0 and the block's height - 1", self.nodes[0].getchaintxstats, 201) def _test_gettxoutsetinfo(self): node = self.nodes[0] @@ -147,7 +147,7 @@ class BlockchainTest(BitcoinTestFramework): def _test_getblockheader(self): node = self.nodes[0] - assert_raises_jsonrpc(-5, "Block not found", + assert_raises_rpc_error(-5, "Block not found", node.getblockheader, "nonsense") besthash = node.getbestblockhash() |