diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-08-11 11:59:37 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-08-11 11:59:37 +0200 |
commit | a9fcef868b369568163e19c73651c55ccea4604d (patch) | |
tree | f6d0347829b3cc7d35027083655b0de3762cef74 /test/test_protocol_http.py | |
parent | a10c31c6984f9b6646d2a7bad05ace912ea152a7 (diff) | |
parent | 891fa50e554963ef7cf236b087cfbedfaf19849e (diff) | |
download | mitmproxy-a9fcef868b369568163e19c73651c55ccea4604d.tar.gz mitmproxy-a9fcef868b369568163e19c73651c55ccea4604d.tar.bz2 mitmproxy-a9fcef868b369568163e19c73651c55ccea4604d.zip |
Merge pull request #720 from Kriechi/cleanup
move code to netlib
Diffstat (limited to 'test/test_protocol_http.py')
-rw-r--r-- | test/test_protocol_http.py | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/test/test_protocol_http.py b/test/test_protocol_http.py index 81c39f09..2da54093 100644 --- a/test/test_protocol_http.py +++ b/test/test_protocol_http.py @@ -11,27 +11,12 @@ from netlib.http.semantics import CONTENT_MISSING import tutils import tservers -def mock_protocol(data='', chunked=False): +def mock_protocol(data=''): rfile = cStringIO.StringIO(data) wfile = cStringIO.StringIO() return http1.HTTP1Protocol(rfile=rfile, wfile=wfile) -# TODO: move test to netlib http1 protocol -# def test_stripped_chunked_encoding_no_content(): -# """ -# https://github.com/mitmproxy/mitmproxy/issues/186 -# """ -# r = tutils.tresp(content="") -# r.headers["Transfer-Encoding"] = ["chunked"] -# assert "Content-Length" in r._assemble_headers() -# -# r = tutils.treq(content="") -# r.headers["Transfer-Encoding"] = ["chunked"] -# assert "Content-Length" in r._assemble_headers() -# - - class TestHTTPResponse: def test_read_from_stringio(self): s = "HTTP/1.1 200 OK\r\n" \ @@ -58,8 +43,6 @@ class TestHTTPResponse: ) - - class TestHTTPFlow(object): def test_repr(self): f = tutils.tflow(resp=True, err=True) |