mitmproxy/test/test_app.py
Thomas Kriechbaumer c2bb29f669 cleanup imports
2016-01-27 10:36:28 +01:00

15 lines
377 B
Python

import tutils
import tservers
class TestApp(tservers.HTTPProxTest):
def test_basic(self):
assert self.app("/").status_code == 200
def test_cert(self):
with tutils.tmpdir() as d:
for ext in ["pem", "p12"]:
resp = self.app("/cert/%s" % ext)
assert resp.status_code == 200
assert resp.content