aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_proxy.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-02-05 14:33:17 +0100
committerMaximilian Hils <git@maximilianhils.com>2014-02-05 14:33:17 +0100
commitd864a326d25815a240aa5ac34171e48687311f29 (patch)
tree8041cd128cc7a261687f696cdc33e4e6707e66d9 /test/test_proxy.py
parent6a53ae5fd37b516074f9bf46cffab015f6626b9e (diff)
downloadmitmproxy-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.py4
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):