diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-26 17:39:50 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-26 17:39:50 +0200 |
commit | 49ea8fc0ebcfe4861f099200044a553f092faec7 (patch) | |
tree | 8b5d9db62503a6e0125d0e6dbd708c6482aa5bf4 /test/http/http1/test_read.py | |
parent | 106f7046d3862cb0e3cbb4f38335af0330b4e7e3 (diff) | |
download | mitmproxy-49ea8fc0ebcfe4861f099200044a553f092faec7.tar.gz mitmproxy-49ea8fc0ebcfe4861f099200044a553f092faec7.tar.bz2 mitmproxy-49ea8fc0ebcfe4861f099200044a553f092faec7.zip |
refactor response model
Diffstat (limited to 'test/http/http1/test_read.py')
-rw-r--r-- | test/http/http1/test_read.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/http/http1/test_read.py b/test/http/http1/test_read.py index c3f744bf..fadfe446 100644 --- a/test/http/http1/test_read.py +++ b/test/http/http1/test_read.py @@ -34,7 +34,7 @@ def test_read_request_head(): r = read_request_head(rfile) assert r.method == "GET" assert r.headers["Content-Length"] == "4" - assert r.body is None + assert r.content is None assert rfile.reset_timestamps.called assert r.timestamp_start == 42 assert rfile.read() == b"skip" @@ -45,7 +45,7 @@ def test_read_response(): rfile = BytesIO(b"HTTP/1.1 418 I'm a teapot\r\n\r\nbody") r = read_response(rfile, req) assert r.status_code == 418 - assert r.body == b"body" + assert r.content == b"body" assert r.timestamp_end @@ -61,7 +61,7 @@ def test_read_response_head(): r = read_response_head(rfile) assert r.status_code == 418 assert r.headers["Content-Length"] == "4" - assert r.body is None + assert r.content is None assert rfile.reset_timestamps.called assert r.timestamp_start == 42 assert rfile.read() == b"skip" |