diff options
author | John Newbery <john@johnnewbery.com> | 2017-07-12 10:29:02 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2017-10-05 09:48:46 -0400 |
commit | 5864e9c1611e6034a8d49b78231abe6bfade686d (patch) | |
tree | e8cec4a64d53873002d7ab327e2cd026802bc49e /test/functional/importmulti.py | |
parent | e93fff1463ae906fc986bf98c3b118c82f171546 (diff) |
[tests] remove direct testing on JSONRPCException from individual test cases
Diffstat (limited to 'test/functional/importmulti.py')
-rwxr-xr-x | test/functional/importmulti.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/importmulti.py b/test/functional/importmulti.py index 32f555c79b..fcc38123a9 100755 --- a/test/functional/importmulti.py +++ b/test/functional/importmulti.py @@ -423,11 +423,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": "", |