aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_language_http.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-09-17 15:25:28 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-09-17 15:25:28 +0200
commit6661ad3143254f2d616e625e6a9092974cc60842 (patch)
tree6c4327f2bbbaf24e41202394f7d2c775e845d410 /test/test_language_http.py
parent8fa01f41a6c821d29e595f89613d3bb1b5aabb58 (diff)
downloadmitmproxy-6661ad3143254f2d616e625e6a9092974cc60842.tar.gz
mitmproxy-6661ad3143254f2d616e625e6a9092974cc60842.tar.bz2
mitmproxy-6661ad3143254f2d616e625e6a9092974cc60842.zip
code -> status_code, httpversion -> http_version
Diffstat (limited to 'test/test_language_http.py')
-rw-r--r--test/test_language_http.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_language_http.py b/test/test_language_http.py
index ae2906bd..26bb6a45 100644
--- a/test/test_language_http.py
+++ b/test/test_language_http.py
@@ -149,7 +149,7 @@ class TestResponse:
def test_response(self):
r = language.parse_pathod("400:m'msg'").next()
- assert r.code.string() == "400"
+ assert r.status_code.string() == "400"
assert r.reason.string() == "msg"
r = language.parse_pathod("400:m'msg':b@100b").next()
@@ -158,7 +158,7 @@ class TestResponse:
assert str(r)
r = language.parse_pathod("200").next()
- assert r.code.string() == "200"
+ assert r.status_code.string() == "200"
assert not r.reason
assert "OK" in [i[:] for i in r.preamble({})]
@@ -261,7 +261,7 @@ class TestResponse:
r = language.parse_pathod("ws").next()
tutils.raises("no websocket key", r.resolve, language.Settings())
res = r.resolve(language.Settings(websocket_key="foo"))
- assert res.code.string() == "101"
+ assert res.status_code.string() == "101"
def test_ctype_shortcut():