diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-25 10:53:29 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-25 10:55:00 +1200 |
commit | e7e6a60246c28e1399f0fd626c73b4f16b04a995 (patch) | |
tree | e3220f7b0c7b63e59a47fc2115a0375afb4250f4 /test/test_app.py | |
parent | 59f408dcf437b0099edc0b54b73c006752c7dc7e (diff) | |
download | mitmproxy-e7e6a60246c28e1399f0fd626c73b4f16b04a995.tar.gz mitmproxy-e7e6a60246c28e1399f0fd626c73b4f16b04a995.tar.bz2 mitmproxy-e7e6a60246c28e1399f0fd626c73b4f16b04a995.zip |
Nicer error for empty preview spec submission.
Diffstat (limited to 'test/test_app.py')
-rw-r--r-- | test/test_app.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_app.py b/test/test_app.py index 699c9c41..da6431c9 100644 --- a/test/test_app.py +++ b/test/test_app.py @@ -59,3 +59,7 @@ class TestApp(tutils.DaemonTests): assert r.status_code == 200 assert 'Request' in r.content + r = self.getpath("/request_preview", params=dict(spec="")) + assert r.status_code == 200 + assert 'empty spec' in r.content + |