aboutsummaryrefslogtreecommitdiff
path: root/test/functional/importmulti.py
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-07-12 10:29:02 -0400
committerMarcoFalke <falke.marco@gmail.com>2017-11-01 10:40:09 -0400
commit5b728c8e98a4d3d72b1ca5f6ac287b453b0fb5d6 (patch)
treec4a4cd22c46b1d214a27f532bf4e39adc5d395aa /test/functional/importmulti.py
parent34833534b656f565df9510a6c649687063db956d (diff)
downloadbitcoin-5b728c8e98a4d3d72b1ca5f6ac287b453b0fb5d6.tar.xz
[tests] remove direct testing on JSONRPCException from individual test cases
Github-Pull: #10853 Rebased-From: 5864e9c1611e6034a8d49b78231abe6bfade686d
Diffstat (limited to 'test/functional/importmulti.py')
-rwxr-xr-xtest/functional/importmulti.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/importmulti.py b/test/functional/importmulti.py
index 6907d64070..f16c9ab97a 100755
--- a/test/functional/importmulti.py
+++ b/test/functional/importmulti.py
@@ -448,11 +448,11 @@ class ImportMultiTest (BitcoinTestFramework):
# Bad or missing timestamps
self.log.info("Should throw on invalid or missing timestamp values")
- assert_raises_message(JSONRPCException, 'Missing required timestamp field for key',
+ assert_raises_jsonrpc(-3, 'Missing required timestamp field for key',
self.nodes[1].importmulti, [{
"scriptPubKey": address['scriptPubKey'],
}])
- assert_raises_message(JSONRPCException, 'Expected number or "now" timestamp value for key. got type string',
+ assert_raises_jsonrpc(-3, 'Expected number or "now" timestamp value for key. got type string',
self.nodes[1].importmulti, [{
"scriptPubKey": address['scriptPubKey'],
"timestamp": "",