From c02adbb8e1a272196f891e3487e5ce079868cb0d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Caruana Date: Tue, 30 Jul 2013 18:51:23 +0200 Subject: tostring.escape : optimization use of xml.etree.ElementTree._escape_attrib and xml.etree.ElementTree._escape_cdata --- tests/test_tostring.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test_tostring.py b/tests/test_tostring.py index e6148533..be11ab03 100644 --- a/tests/test_tostring.py +++ b/tests/test_tostring.py @@ -34,8 +34,7 @@ class TestToString(SleekTest): desired = """<foo bar="baz">'Hi""" desired += """ & welcome!'</foo>""" - self.failUnless(escaped == desired, - "XML escaping did not work: %s." % escaped) + self.assertEqual(escaped, desired) def testEmptyElement(self): """Test converting an empty element to a string.""" -- cgit v1.2.3