mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
14 lines
321 B
Python
14 lines
321 B
Python
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
|