diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-02-05 14:33:17 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-02-05 14:33:17 +0100 |
commit | d864a326d25815a240aa5ac34171e48687311f29 (patch) | |
tree | 8041cd128cc7a261687f696cdc33e4e6707e66d9 /test/test_proxy.py | |
parent | 6a53ae5fd37b516074f9bf46cffab015f6626b9e (diff) | |
download | mitmproxy-d864a326d25815a240aa5ac34171e48687311f29.tar.gz mitmproxy-d864a326d25815a240aa5ac34171e48687311f29.tar.bz2 mitmproxy-d864a326d25815a240aa5ac34171e48687311f29.zip |
fix all tests except those using set_url and get_url
Diffstat (limited to 'test/test_proxy.py')
-rw-r--r-- | test/test_proxy.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py index 737e4a92..41d41d0c 100644 --- a/test/test_proxy.py +++ b/test/test_proxy.py @@ -22,14 +22,12 @@ class TestServerConnection: sc = proxy.ServerConnection((self.d.IFACE, self.d.port)) sc.connect() r = tutils.treq() + r.flow.server_conn = sc r.path = "/p/200:da" sc.send(r._assemble()) assert http.read_response(sc.rfile, r.method, 1000) assert self.d.last_log() - r.content = flow.CONTENT_MISSING - tutils.raises("incomplete request", sc.send, r._assemble()) - sc.finish() def test_terminate_error(self): |