Fix RPC failure testing
commit9db8eecac1c713c760c0217b6acb7455c657fa8b
authorJohn Newbery <john@johnnewbery.com>
Tue, 7 Feb 2017 14:56:53 +0000 (7 09:56 -0500)
committerJohn Newbery <john@johnnewbery.com>
Wed, 8 Feb 2017 15:24:02 +0000 (8 10:24 -0500)
tree02faa45b0da7cd2271cf4a3b089e78dd0e308f4d
parent729de15b6365face6ae9e12a03624da33a6302f0
Fix RPC failure testing

Make sure that RPC tests are actually checking failures correctly by:

- Catching JSON RPC exceptions and verifying the error codes and messages.
- Failing the test case if the JSON RPC exception isn't raised.
qa/rpc-tests/rpcnamedargs.py
qa/rpc-tests/test_framework/util.py