mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Merge #7801: [qa] Remove misleading "errorString syntax"
ffff866
[qa] Remove misleading "errorString syntax" (MarcoFalke)
This commit is contained in:
parent
738e1c51c0
commit
a8aeff143b
@ -82,10 +82,11 @@ class ImportPrunedFundsTest(BitcoinTestFramework):
|
||||
#Import with no affiliated address
|
||||
try:
|
||||
result1 = self.nodes[1].importprunedfunds(rawtxn1, proof1, "")
|
||||
except JSONRPCException,e:
|
||||
errorString = e.error['message']
|
||||
except JSONRPCException as e:
|
||||
assert('No addresses' in e.error['message'])
|
||||
else:
|
||||
assert(False)
|
||||
|
||||
assert('No addresses' in errorString)
|
||||
|
||||
balance1 = self.nodes[1].getbalance("", 0, False, True)
|
||||
assert_equal(balance1, Decimal(0))
|
||||
@ -119,10 +120,11 @@ class ImportPrunedFundsTest(BitcoinTestFramework):
|
||||
|
||||
try:
|
||||
self.nodes[1].removeprunedfunds(txnid1)
|
||||
except JSONRPCException,e:
|
||||
errorString = e.error['message']
|
||||
except JSONRPCException as e:
|
||||
assert('does not exist' in e.error['message'])
|
||||
else:
|
||||
assert(False)
|
||||
|
||||
assert('does not exist' in errorString)
|
||||
|
||||
balance1 = Decimal(self.nodes[1].getbalance("", 0, False, True))
|
||||
assert_equal(balance1, Decimal('0.075'))
|
||||
|
@ -307,10 +307,7 @@ class WalletTest (BitcoinTestFramework):
|
||||
self.sync_all()
|
||||
|
||||
# Check that the txid and balance is found by node1
|
||||
try:
|
||||
self.nodes[1].gettransaction(cbTxId)
|
||||
except JSONRPCException,e:
|
||||
assert("Invalid or non-wallet transaction id" not in e.error['message'])
|
||||
self.nodes[1].gettransaction(cbTxId)
|
||||
|
||||
#check if wallet or blochchain maintenance changes the balance
|
||||
self.sync_all()
|
||||
|
Loading…
Reference in New Issue
Block a user