diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-10-28 12:56:08 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-10-28 12:56:08 +1300 |
commit | 9d42a06c92f0fdc7ca986b738086d361d9b0599b (patch) | |
tree | 03604d6f93c3358d8cf70bf0e94f601e8ce5754b /test/test_app.py | |
parent | f54ed69a358d2dd059bd844c752f96e29e90e269 (diff) | |
download | mitmproxy-9d42a06c92f0fdc7ca986b738086d361d9b0599b.tar.gz mitmproxy-9d42a06c92f0fdc7ca986b738086d361d9b0599b.tar.bz2 mitmproxy-9d42a06c92f0fdc7ca986b738086d361d9b0599b.zip |
Move message body to new lazy-generator scheme.
Diffstat (limited to 'test/test_app.py')
-rw-r--r-- | test/test_app.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test_app.py b/test/test_app.py index 7b2451d6..b3194052 100644 --- a/test/test_app.py +++ b/test/test_app.py @@ -47,9 +47,13 @@ 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")) + r = self.getpath("/response_preview", params=dict(spec="200:b<nonexistent")) assert r.status_code == 200 - assert 'File access is disabled' in r.content + assert 'File access denied' in r.content + + r = self.getpath("/response_preview", params=dict(spec="200:b<file")) + assert r.status_code == 200 + assert 'testfile' in r.content def test_request_preview(self): r = self.getpath("/request_preview", params=dict(spec="get:/")) |