diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-06-04 15:30:28 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-06-04 15:30:28 +1200 |
commit | 12a4f9ecf94760f0c63064ce3b42699ab16fffa6 (patch) | |
tree | 1b042e44348020bf8039202f45adabfa1620fdb9 /test | |
parent | f7f9cab5dc5fa779287d09f75507ca1ce2c99bba (diff) | |
download | mitmproxy-12a4f9ecf94760f0c63064ce3b42699ab16fffa6.tar.gz mitmproxy-12a4f9ecf94760f0c63064ce3b42699ab16fffa6.tar.bz2 mitmproxy-12a4f9ecf94760f0c63064ce3b42699ab16fffa6.zip |
Very basic test truss for web.app
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/test_web_app.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/mitmproxy/test_web_app.py b/test/mitmproxy/test_web_app.py index e69de29b..ae934cfc 100644 --- a/test/mitmproxy/test_web_app.py +++ b/test/mitmproxy/test_web_app.py @@ -0,0 +1,22 @@ +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 |