summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJean-Philippe Caruana <jp@barreverte.fr>2013-07-30 18:51:23 +0200
committerJean-Philippe Caruana <jp@barreverte.fr>2013-07-30 18:51:23 +0200
commitc02adbb8e1a272196f891e3487e5ce079868cb0d (patch)
tree38b3042f50d5ff082e9418857638cc8503ab230b /tests
parent88e64dbfae71b4518459b7997c0a6e70d2e48e11 (diff)
downloadslixmpp-c02adbb8e1a272196f891e3487e5ce079868cb0d.tar.gz
slixmpp-c02adbb8e1a272196f891e3487e5ce079868cb0d.tar.bz2
slixmpp-c02adbb8e1a272196f891e3487e5ce079868cb0d.tar.xz
slixmpp-c02adbb8e1a272196f891e3487e5ce079868cb0d.zip
tostring.escape : optimization
use of xml.etree.ElementTree._escape_attrib and xml.etree.ElementTree._escape_cdata
Diffstat (limited to 'tests')
-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 = """&lt;foo bar=&quot;baz&quot;&gt;&apos;Hi"""
desired += """ &amp; welcome!&apos;&lt;/foo&gt;"""
- 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."""