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, 1 insertions, 2 deletions
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."""