summaryrefslogtreecommitdiff
path: root/tests/test_tostring.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_tostring.py')
-rw-r--r--tests/test_tostring.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_tostring.py b/tests/test_tostring.py
index be11ab03..e6148533 100644
--- a/tests/test_tostring.py
+++ b/tests/test_tostring.py
@@ -34,7 +34,8 @@ class TestToString(SleekTest):
desired = """<foo bar="baz">'Hi"""
desired += """ & welcome!'</foo>"""
- self.assertEqual(escaped, desired)
+ self.failUnless(escaped == desired,
+ "XML escaping did not work: %s." % escaped)
def testEmptyElement(self):
"""Test converting an empty element to a string."""