aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_dump.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-09-17 15:16:33 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-09-17 15:16:33 +0200
commit906360f63f2afb4991dd2b38528798ad4efd0618 (patch)
treea89f2d2d1a768f85ea604589ade4df85b7c09d22 /test/test_dump.py
parent12984f149cab1308b97b5ae1bdbe375787057e7e (diff)
downloadmitmproxy-906360f63f2afb4991dd2b38528798ad4efd0618.tar.gz
mitmproxy-906360f63f2afb4991dd2b38528798ad4efd0618.tar.bz2
mitmproxy-906360f63f2afb4991dd2b38528798ad4efd0618.zip
code -> status_code, httpversion -> http_version
Diffstat (limited to 'test/test_dump.py')
-rw-r--r--test/test_dump.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_dump.py b/test/test_dump.py
index 9d177ea0..56d3edd2 100644
--- a/test/test_dump.py
+++ b/test/test_dump.py
@@ -40,13 +40,13 @@ def test_strfuncs():
flow.client_conn.address.host = "foo"
flow.response = netlib.tutils.tresp(body=CONTENT_MISSING)
flow.response.is_replay = True
- flow.response.code = 300
+ flow.response.status_code = 300
m.echo_flow(flow)
flow = tutils.tflow(resp=netlib.tutils.tresp(body="{"))
flow.response.headers["content-type"] = "application/json"
- flow.response.code = 400
+ flow.response.status_code = 400
m.echo_flow(flow)