diff options
author | Jean-Philippe Caruana <jp@barreverte.fr> | 2013-07-30 18:51:23 +0200 |
---|---|---|
committer | Jean-Philippe Caruana <jp@barreverte.fr> | 2013-07-30 18:51:23 +0200 |
commit | c02adbb8e1a272196f891e3487e5ce079868cb0d (patch) | |
tree | 38b3042f50d5ff082e9418857638cc8503ab230b /tests/test_tostring.py | |
parent | 88e64dbfae71b4518459b7997c0a6e70d2e48e11 (diff) | |
download | slixmpp-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/test_tostring.py')
-rw-r--r-- | tests/test_tostring.py | 3 |
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.""" |