aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/test_models.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-09-16 18:43:24 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-09-16 18:43:24 +0200
commit265f31e8782ee9da511ce4b63aa2da00221cbf66 (patch)
treec0eba50b522d1d0183b057e9cae7bf7cc38c4fc3 /test/http/test_models.py
parent9b882d245052feec44fc77e102dc597d24de2b80 (diff)
downloadmitmproxy-265f31e8782ee9da511ce4b63aa2da00221cbf66.tar.gz
mitmproxy-265f31e8782ee9da511ce4b63aa2da00221cbf66.tar.bz2
mitmproxy-265f31e8782ee9da511ce4b63aa2da00221cbf66.zip
adjust http1-related code
Diffstat (limited to 'test/http/test_models.py')
-rw-r--r--test/http/test_models.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/http/test_models.py b/test/http/test_models.py
index 0f4dcc3b..8fce2e9d 100644
--- a/test/http/test_models.py
+++ b/test/http/test_models.py
@@ -20,7 +20,7 @@ class TestRequest(object):
'host',
'port',
'path',
- (1, 1),
+ b"HTTP/1.1",
'foobar',
)
@@ -31,7 +31,7 @@ class TestRequest(object):
'host',
'port',
'path',
- (1, 1),
+ b"HTTP/1.1",
)
assert isinstance(req.headers, Headers)
@@ -307,13 +307,13 @@ class TestRequest(object):
class TestResponse(object):
def test_headers(self):
tutils.raises(AssertionError, Response,
- (1, 1),
+ b"HTTP/1.1",
200,
headers='foobar',
)
resp = Response(
- (1, 1),
+ b"HTTP/1.1",
200,
)
assert isinstance(resp.headers, Headers)