diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-05-27 11:18:54 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-05-27 11:19:11 +0200 |
commit | e3d390e036430b9d7cc4b93679229fe118eb583a (patch) | |
tree | 1f10a2a59c8abef4bd24c8189d14602264b20fad /test/test_http.py | |
parent | f7b75ba8c21c66e38da81adf3b2c573b7dae87f3 (diff) | |
download | mitmproxy-e3d390e036430b9d7cc4b93679229fe118eb583a.tar.gz mitmproxy-e3d390e036430b9d7cc4b93679229fe118eb583a.tar.bz2 mitmproxy-e3d390e036430b9d7cc4b93679229fe118eb583a.zip |
cleanup code with autopep8
run the following command:
$ autopep8 -i -r -a -a .
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) |