diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-04-03 21:20:14 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-04-03 21:33:56 +0200 |
commit | ffff866da83209dcaa463d8b9539d3f539f83a97 (patch) | |
tree | d1adb0a90470bee083786f288ca8a9c46a29ae8f /qa/rpc-tests/importprunedfunds.py | |
parent | e662a76288011fe6a640f1c02c2381284ad93a03 (diff) |
[qa] Remove misleading "errorString syntax"
Diffstat (limited to 'qa/rpc-tests/importprunedfunds.py')
-rwxr-xr-x | qa/rpc-tests/importprunedfunds.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/qa/rpc-tests/importprunedfunds.py b/qa/rpc-tests/importprunedfunds.py index db875800d4..a9324196ee 100755 --- a/qa/rpc-tests/importprunedfunds.py +++ b/qa/rpc-tests/importprunedfunds.py @@ -83,9 +83,10 @@ class ImportPrunedFundsTest(BitcoinTestFramework): try: result1 = self.nodes[1].importprunedfunds(rawtxn1, proof1, "") except JSONRPCException as e: - errorString = e.error['message'] + assert('No addresses' in e.error['message']) + else: + assert(False) - assert('No addresses' in errorString) balance1 = self.nodes[1].getbalance("", 0, True) assert_equal(balance1, Decimal(0)) @@ -120,9 +121,10 @@ class ImportPrunedFundsTest(BitcoinTestFramework): try: self.nodes[1].removeprunedfunds(txnid1) except JSONRPCException as e: - errorString = e.error['message'] + assert('does not exist' in e.error['message']) + else: + assert(False) - assert('does not exist' in errorString) balance1 = Decimal(self.nodes[1].getbalance("", 0, True)) assert_equal(balance1, Decimal('0.075')) |