diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-25 00:16:24 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-25 00:18:23 +1200 |
commit | 7dab85e8b1de9101cadcc75768672a7ca26da3b8 (patch) | |
tree | 1ad6a3ca113a8eda045f4b3c1806ae4fead7d899 /test | |
parent | 64ef0a4561058de4ca7309767e89366bc1c7502f (diff) | |
download | mitmproxy-7dab85e8b1de9101cadcc75768672a7ca26da3b8.tar.gz mitmproxy-7dab85e8b1de9101cadcc75768672a7ca26da3b8.tar.bz2 mitmproxy-7dab85e8b1de9101cadcc75768672a7ca26da3b8.zip |
Handle file access denied errors in previews.
Diffstat (limited to 'test')
-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 b0d730af..8070996f 100644 --- a/test/test_app.py +++ b/test/test_app.py @@ -38,6 +38,10 @@ class TestApp(tutils.DaemonTests): assert r.status_code == 200 assert 'Response' in r.content + r = self.getpath("/response_preview", params=dict(spec="200:b<foo")) + assert r.status_code == 200 + assert 'File access is disabled' in r.content + def test_request_preview(self): r = self.getpath("/request_preview", params=dict(spec="get:/")) assert r.status_code == 200 |