diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-10-30 13:36:32 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-10-30 13:36:32 +1300 |
commit | 677f0e0580f92d1244285b9f0481c3ace3b14ee1 (patch) | |
tree | 59ed047bace6e0da17f9fd951411b73aa2bbf50d /test | |
parent | a1f782b543567ce2e88cd8b5defae64b3cbc89d3 (diff) | |
download | mitmproxy-677f0e0580f92d1244285b9f0481c3ace3b14ee1.tar.gz mitmproxy-677f0e0580f92d1244285b9f0481c3ace3b14ee1.tar.bz2 mitmproxy-677f0e0580f92d1244285b9f0481c3ace3b14ee1.zip |
Change preview_safe to return a safe copy of the current message.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_language.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_language.py b/test/test_language.py index 6d9fa31d..d0f43198 100644 --- a/test/test_language.py +++ b/test/test_language.py @@ -606,9 +606,9 @@ class TestResponse: def test_render(self): r = language.parse_response({}, "400:p0,100:dr") - assert r.actions[0].spec() == "p0,100" - assert len(r.preview_safe()) == 1 - assert not r.actions[0].spec().startswith("p") + assert "p0" in r.spec() + s = r.preview_safe() + assert not "p0" in s.spec() |