diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-23 16:39:25 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-23 16:39:25 +1200 |
commit | 2880fee4e3f80f8748b6a69f1a72aa3a3a5fa922 (patch) | |
tree | 6e5d012051c7e298470390e9238e5c43d39237d7 /test/test_app.py | |
parent | e354974787db631c6bacc7dd014cb7e2bac5ff9c (diff) | |
download | mitmproxy-2880fee4e3f80f8748b6a69f1a72aa3a3a5fa922.tar.gz mitmproxy-2880fee4e3f80f8748b6a69f1a72aa3a3a5fa922.tar.bz2 mitmproxy-2880fee4e3f80f8748b6a69f1a72aa3a3a5fa922.zip |
Escape unprintable content in preview.
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 84d2e8e5..0b406ee0 100644 --- a/test/test_app.py +++ b/test/test_app.py @@ -34,4 +34,8 @@ class TestApp(tutils.DaemonTests): assert r.status_code == 200 assert "too large" in r.content + r = self.getpath("/preview", params=dict(spec="200:b@5k")) + assert r.status_code == 200 + assert 'Response' in r.content + |