mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Few assert_raises_jsonrpc -> assert_raises_rpc_error fixes
This commit is contained in:
parent
60ef97cc41
commit
424ed32dbb
@ -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
|
||||
|
@ -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')
|
||||
|
@ -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)
|
||||
|
@ -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 ()
|
||||
|
Loading…
Reference in New Issue
Block a user