Few assert_raises_jsonrpc -> assert_raises_rpc_error fixes

This commit is contained in:
Alexander Block 2019-09-29 12:48:49 +02:00
parent 60ef97cc41
commit 424ed32dbb
4 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ from test_framework import mininode
from test_framework.blocktools import get_masternode_payment, create_coinbase, create_block
from test_framework.mininode import *
from test_framework.test_framework import DashTestFramework
from test_framework.util import sync_blocks, p2p_port, assert_raises_jsonrpc, set_node_times
from test_framework.util import sync_blocks, p2p_port, assert_raises_rpc_error, set_node_times
'''
llmq-is-cl-conflicts.py

View File

@ -15,7 +15,7 @@ from decimal import Decimal
from test_framework.blocktools import create_coinbase
from test_framework.mininode import CBlock
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal, assert_raises_jsonrpc
from test_framework.util import assert_equal, assert_raises_rpc_error
def b2x(b):
return b2a_hex(b).decode('ascii')

View File

@ -6,7 +6,7 @@
from test_framework.mininode import *
from test_framework.test_framework import DashTestFramework
from test_framework.util import isolate_node, set_node_times, reconnect_isolated_node, assert_equal, \
assert_raises_jsonrpc
assert_raises_rpc_error
'''
InstantSendTest -- test InstantSend functionality (prevent doublespend for unconfirmed transactions)

View File

@ -7,7 +7,7 @@ import os
import sys
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (assert_equal, assert_raises_jsonrpc)
from test_framework.util import (assert_equal, assert_raises_rpc_error)
def read_dump(file_name, addrs, hd_master_addr_old):
@ -113,7 +113,7 @@ class WalletDumpTest(BitcoinTestFramework):
assert_equal(found_addr_rsv, 180) # keypool size
# Overwriting should fail
assert_raises_jsonrpc(-8, "already exists", self.nodes[0].dumpwallet, tmpdir + "/node0/wallet.unencrypted.dump")
assert_raises_rpc_error(-8, "already exists", self.nodes[0].dumpwallet, tmpdir + "/node0/wallet.unencrypted.dump")
if __name__ == '__main__':
WalletDumpTest().main ()