dash/qa/rpc-tests/test_framework
Wladimir J. van der Laan 5078ca4543 tests: Check Content-Type header returned from RPC server
Check the Content-Type header that is returned from the RPC server. Only
if it is `application/json` the data is supposed to be parsed as JSON.

This gives better reporting if the HTTP server happens to return an error that is
not JSON-formatted, which is the case if it happens at a lower level
before JSON-RPC kicks in.

Before: `Unexpected exception caught during testing: No JSON object could be decoded`

After: `JSONRPC error: non-JSON HTTP response with '403 Forbidden' from server`
2016-04-07 15:40:17 +02:00
..
__init__.py [QA] restructure rpc tests directory 2015-05-18 15:25:45 +02:00
authproxy.py tests: Check Content-Type header returned from RPC server 2016-04-07 15:40:17 +02:00
bignum.py [QA] restructure rpc tests directory 2015-05-18 15:25:45 +02:00
blockstore.py [qa] Use python2/3 syntax 2016-03-31 18:35:17 +02:00
blocktools.py [qa] rpc-tests: Properly use integers, floats 2016-04-01 21:23:30 +02:00
comptool.py [qa] Use python2/3 syntax 2016-03-31 18:35:17 +02:00
coverage.py Add missing copyright headers 2016-01-05 21:34:15 +01:00
key.py Add p2p-fullblocktest.py 2015-08-21 15:31:37 -04:00
mininode.py [qa] mininode: Combine struct.pack format strings 2016-04-02 11:48:07 +02:00
netutil.py Merge #7778: [qa] Bug fixes and refactor 2016-04-03 15:54:35 +02:00
script.py [qa] Fix pyton syntax in rpc tests 2016-01-13 20:31:03 +01:00
socks5.py [qa] Use python2/3 syntax 2016-03-31 18:35:17 +02:00
test_framework.py [qa] Use python2/3 syntax 2016-03-31 18:35:17 +02:00
util.py test_framework: detect failure of bitcoind startup 2016-03-26 08:10:07 +01:00