From 5ad27f85db3e5c0a0e6f05ab099bfbfc8b0d0dd5 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Wed, 27 Jul 2011 11:27:13 -0400 Subject: All API tests now utilize our own searializers. --- tests/test_apis.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_apis.py b/tests/test_apis.py index 042b1c1..c9e89ad 100644 --- a/tests/test_apis.py +++ b/tests/test_apis.py @@ -46,7 +46,8 @@ class TestBlockParser(unittest.TestCase): root = markdown.util.etree.Element("div") text = 'foo' self.parser.parseChunk(root, text) - self.assertEqual(markdown.util.etree.tostring(root), "

foo

") + self.assertEqual(markdown.searializers.to_xhtml_string(root), + "

foo

") def testParseDocument(self): """ Test BlockParser.parseDocument. """ @@ -54,7 +55,7 @@ class TestBlockParser(unittest.TestCase): tree = self.parser.parseDocument(lines) self.assert_(isinstance(tree, markdown.util.etree.ElementTree)) self.assert_(markdown.util.etree.iselement(tree.getroot())) - self.assertEqual(markdown.util.etree.tostring(tree.getroot()), + self.assertEqual(markdown.searializers.to_xhtml_string(tree.getroot()), "

foo

bar

baz\n
") @@ -353,5 +354,6 @@ class testAtomicString(unittest.TestCase): span1.tail = markdown.util.AtomicString(u' *with*') new = self.inlineprocessor.run(tree) self.assertEqual(markdown.searializers.to_html_string(new), - '

*some* *more* *text* *here* *to* *test* *with*

') + '

*some* *more* *text* *here* ' + '*to* *test* *with*

') -- cgit v1.2.3