diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-29 11:39:53 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-30 13:53:17 +0200 |
commit | a5d9e1f44dbe0fc6fee174b1953806f9b148b5ad (patch) | |
tree | 0ee53b14c3513472ea1597144b228841454eef4f /test/test_dump.py | |
parent | 89f22f735944989912a7a0394dd7e80d420cb0f3 (diff) | |
download | mitmproxy-a5d9e1f44dbe0fc6fee174b1953806f9b148b5ad.tar.gz mitmproxy-a5d9e1f44dbe0fc6fee174b1953806f9b148b5ad.tar.bz2 mitmproxy-a5d9e1f44dbe0fc6fee174b1953806f9b148b5ad.zip |
move code to netlib and implement protocols
Diffstat (limited to 'test/test_dump.py')
-rw-r--r-- | test/test_dump.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test_dump.py b/test/test_dump.py index e3743ac6..46c832d3 100644 --- a/test/test_dump.py +++ b/test/test_dump.py @@ -1,5 +1,8 @@ import os from cStringIO import StringIO + +from netlib.http.semantics import CONTENT_MISSING + from libmproxy import dump, flow from libmproxy.protocol import http from libmproxy.proxy.primitives import Log @@ -65,10 +68,10 @@ class TestDumpMaster: o = dump.Options(flow_detail=3) m = dump.DumpMaster(None, o, outfile=cs) f = tutils.tflow() - f.request.content = http.CONTENT_MISSING + f.request.content = CONTENT_MISSING m.handle_request(f) f.response = tutils.tresp() - f.response.content = http.CONTENT_MISSING + f.response.content = CONTENT_MISSING m.handle_response(f) assert "content missing" in cs.getvalue() |