diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-26 17:41:14 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-26 17:41:14 +0200 |
commit | 1b6ea5caf3ab7c30cc4a822b81ad8288efbae70d (patch) | |
tree | 6d295eafd96ee2a39522f1eda3b2ee95e76a1482 /test/test_dump.py | |
parent | b13acd7956f2e09bf5f9001f8f55d018a381f6c2 (diff) | |
download | mitmproxy-1b6ea5caf3ab7c30cc4a822b81ad8288efbae70d.tar.gz mitmproxy-1b6ea5caf3ab7c30cc4a822b81ad8288efbae70d.tar.bz2 mitmproxy-1b6ea5caf3ab7c30cc4a822b81ad8288efbae70d.zip |
adjust to netlib response changes + docs
Diffstat (limited to 'test/test_dump.py')
-rw-r--r-- | test/test_dump.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_dump.py b/test/test_dump.py index 9586a304..a903a651 100644 --- a/test/test_dump.py +++ b/test/test_dump.py @@ -38,13 +38,13 @@ def test_strfuncs(): flow.request.stickycookie = True flow.client_conn = mock.MagicMock() flow.client_conn.address.host = "foo" - flow.response = netlib.tutils.tresp(body=CONTENT_MISSING) + flow.response = netlib.tutils.tresp(content=CONTENT_MISSING) flow.response.is_replay = True flow.response.status_code = 300 m.echo_flow(flow) - flow = tutils.tflow(resp=netlib.tutils.tresp(body="{")) + flow = tutils.tflow(resp=netlib.tutils.tresp(content="{")) flow.response.headers["content-type"] = "application/json" flow.response.status_code = 400 m.echo_flow(flow) @@ -69,7 +69,7 @@ class TestDumpMaster: m.handle_clientconnect(f.client_conn) m.handle_serverconnect(f.server_conn) m.handle_request(f) - f.response = HTTPResponse.wrap(netlib.tutils.tresp(body=content)) + f.response = HTTPResponse.wrap(netlib.tutils.tresp(content=content)) f = m.handle_response(f) m.handle_clientdisconnect(f.client_conn) return f |