diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-05-28 12:12:37 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-05-28 12:12:37 +1200 |
commit | 41af65a1c478825d4df6239b33fbcb971dcf1df8 (patch) | |
tree | 9830657189938900adad330beba0478f0d0761c2 /test/test_http.py | |
parent | 5265b289575d3935e8af29b5c27c963832efc8ad (diff) | |
parent | 80378306960379f12aca72309dc47437cd1a825c (diff) | |
download | mitmproxy-41af65a1c478825d4df6239b33fbcb971dcf1df8.tar.gz mitmproxy-41af65a1c478825d4df6239b33fbcb971dcf1df8.tar.bz2 mitmproxy-41af65a1c478825d4df6239b33fbcb971dcf1df8.zip |
Merge branch 'Kriechi-cleanup'
Diffstat (limited to 'test/test_http.py')
-rw-r--r-- | test/test_http.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_http.py b/test/test_http.py index 63b39f08..0a9e276f 100644 --- a/test/test_http.py +++ b/test/test_http.py @@ -230,6 +230,7 @@ def test_parse_init_http(): class TestReadHeaders: + def _read(self, data, verbatim=False): if not verbatim: data = textwrap.dedent(data) @@ -277,6 +278,7 @@ class TestReadHeaders: class NoContentLengthHTTPHandler(tcp.BaseHandler): + def handle(self): self.wfile.write("HTTP/1.1 200 OK\r\n\r\nbar\r\n\r\n") self.wfile.flush() @@ -297,7 +299,7 @@ def test_read_response(): data = textwrap.dedent(data) r = cStringIO.StringIO(data) return http.read_response( - r, method, limit, include_body = include_body + r, method, limit, include_body=include_body ) tutils.raises("server disconnect", tst, "", "GET", None) |