aboutsummaryrefslogtreecommitdiffstats
path: root/test/mitmproxy/test_app.py
blob: 4c9eff08ea054150005e1f24778056b9b8738312 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from . import tservers


class TestApp(tservers.HTTPProxyTest):

    def test_basic(self):
        assert self.app("/").status_code == 200

    def test_cert(self):
        for ext in ["pem", "p12"]:
            resp = self.app("/cert/%s" % ext)
            assert resp.status_code == 200
            assert resp.content