mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
23 lines
559 B
Python
23 lines
559 B
Python
import tornado.testing
|
|
|
|
from mitmproxy.web import app, master
|
|
|
|
|
|
class TestApp(tornado.testing.AsyncHTTPTestCase):
|
|
def get_app(self):
|
|
o = master.Options()
|
|
m = master.WebMaster(None, o)
|
|
return app.Application(m, None, None)
|
|
|
|
def test_index(self):
|
|
assert self.fetch("/").code == 200
|
|
|
|
def test_filter_help(self):
|
|
assert self.fetch("/filter-help").code == 200
|
|
|
|
def test_events(self):
|
|
assert self.fetch("/events").code == 200
|
|
|
|
def test_flows(self):
|
|
assert self.fetch("/flows").code == 200
|