diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/mitmproxy/builtins/test_wsgiapp.py | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/test/mitmproxy/builtins/test_wsgiapp.py b/test/mitmproxy/builtins/test_wsgiapp.py index c8991892..a39ec5c3 100644 --- a/test/mitmproxy/builtins/test_wsgiapp.py +++ b/test/mitmproxy/builtins/test_wsgiapp.py @@ -33,29 +33,9 @@ class TestApp(tservers.HTTPProxyTest): ret = p.request("get:'http://testapp/'") assert ret.status_code == 200 - def _test_app_err(self): + def test_app_err(self): p = self.pathoc() with p.connect(): ret = p.request("get:'http://errapp/'") assert ret.status_code == 500 assert b"ValueError" in ret.content - - -def _test_app_registry(): - ar = flow.AppRegistry() - ar.add("foo", "domain", 80) - - r = HTTPRequest.wrap(netlib.tutils.treq()) - r.host = "domain" - r.port = 80 - assert ar.get(r) - - r.port = 81 - assert not ar.get(r) - - r = HTTPRequest.wrap(netlib.tutils.treq()) - r.host = "domain2" - r.port = 80 - assert not ar.get(r) - r.headers["host"] = "domain" - assert ar.get(r) |
