mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-01 15:55:28 +00:00
16 lines
378 B
Python
16 lines
378 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
|