From 677f0e0580f92d1244285b9f0481c3ace3b14ee1 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 30 Oct 2012 13:36:32 +1300 Subject: Change preview_safe to return a safe copy of the current message. --- test/test_language.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/test_language.py') 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() -- cgit v1.2.3