diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-24 22:38:48 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-24 22:38:48 +1200 |
commit | 6c565e778f986055f0edd2a170e005f4adb45a5d (patch) | |
tree | 7a8b2f78df644d34d73fcbce35154f63ffbfd555 /test/test_rparse.py | |
parent | e9de11f0e35b6f311c87b8f56ef01de2af2aeb2c (diff) | |
download | mitmproxy-6c565e778f986055f0edd2a170e005f4adb45a5d.tar.gz mitmproxy-6c565e778f986055f0edd2a170e005f4adb45a5d.tar.bz2 mitmproxy-6c565e778f986055f0edd2a170e005f4adb45a5d.zip |
Make previews safer by stripping pauses.
Diffstat (limited to 'test/test_rparse.py')
-rw-r--r-- | test/test_rparse.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_rparse.py b/test/test_rparse.py index 922c8fc6..dadf5bc1 100644 --- a/test/test_rparse.py +++ b/test/test_rparse.py @@ -493,6 +493,12 @@ class TestResponse: r.actions = actions testlen(r, actions) + def test_render(self): + r = rparse.parse_response({}, "400:p0,100:dr") + assert r.actions[0][1] == "pause" + r.preview_safe() + assert not r.actions[0][1] == "pause" + def test_read_file(): |