From f4b58ba495f5faefbfdd85ae15532cf36e2f74c9 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 15 Dec 2013 06:33:18 +0100 Subject: move CONTINUE checks into mitmproxy --- test/test_server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/test_server.py b/test/test_server.py index 2c94b9df..646460ab 100644 --- a/test/test_server.py +++ b/test/test_server.py @@ -176,10 +176,10 @@ class TestHTTPAuth(tservers.HTTPProxTest): class TestHTTPConnectSSLError(tservers.HTTPProxTest): certfile = True def test_go(self): - p = self.pathoc() - req = "connect:'localhost:%s'"%self.proxy.port - assert p.request(req).status_code == 200 - assert p.request(req).status_code == 400 + p = self.pathoc_raw() + dst = ("localhost", self.proxy.port) + p.connect(connect_to=dst) + tutils.raises("400 - Bad Request", p.http_connect, dst) class TestHTTPS(tservers.HTTPProxTest, CommonMixin): -- cgit v1.2.3