From 1e4e332ef9040928cb0548097e879d8e9a57f3a2 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 2 Sep 2014 18:13:18 +0200 Subject: improve error handling --- test/test_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_server.py') diff --git a/test/test_server.py b/test/test_server.py index 52efa5f2..a570f10f 100644 --- a/test/test_server.py +++ b/test/test_server.py @@ -179,7 +179,7 @@ class TestHTTPConnectSSLError(tservers.HTTPProxTest): p = self.pathoc_raw() dst = ("localhost", self.proxy.port) p.connect(connect_to=dst) - tutils.raises("400 - Bad Request", p.http_connect, dst) + tutils.raises("502 - Bad Gateway", p.http_connect, dst) class TestHTTPS(tservers.HTTPProxTest, CommonMixin): @@ -244,7 +244,7 @@ class TestTransparentSSL(tservers.TransparentProxTest, CommonMixin): p = pathoc.Pathoc(("localhost", self.proxy.port)) p.connect() r = p.request("get:/") - assert r.status_code == 502 + assert r.status_code == 400 class TestProxy(tservers.HTTPProxTest): -- cgit v1.2.3