From 6c565e778f986055f0edd2a170e005f4adb45a5d Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 24 Jul 2012 22:38:48 +1200 Subject: Make previews safer by stripping pauses. --- test/test_rparse.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/test_rparse.py') 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(): -- cgit v1.2.3