aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_rparse.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-07-25 12:49:22 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-07-25 12:49:22 +1200
commiteb43291b3c061c654dc93c26e924ca3cd0210b61 (patch)
treec8a72b3fbf1c9dd6c11362583909a6f86f9c29f2 /test/test_rparse.py
parent24f69419df148eb333591b5e8b654cd2987c0843 (diff)
downloadmitmproxy-eb43291b3c061c654dc93c26e924ca3cd0210b61.tar.gz
mitmproxy-eb43291b3c061c654dc93c26e924ca3cd0210b61.tar.bz2
mitmproxy-eb43291b3c061c654dc93c26e924ca3cd0210b61.zip
Note that pauses are skipped during previews.
Diffstat (limited to 'test/test_rparse.py')
-rw-r--r--test/test_rparse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_rparse.py b/test/test_rparse.py
index 57520176..3cbec335 100644
--- a/test/test_rparse.py
+++ b/test/test_rparse.py
@@ -510,7 +510,7 @@ class TestResponse:
def test_render(self):
r = rparse.parse_response({}, "400:p0,100:dr")
assert r.actions[0][1] == "pause"
- r.preview_safe()
+ assert len(r.preview_safe()) == 1
assert not r.actions[0][1] == "pause"