From dfec5a1a062718caedc24a99c9f31e9fa4a36d15 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 20 Jan 2012 04:39:25 -0500 Subject: It is spelled 'serializers' not 'searializers'. --- tests/test_apis.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/test_apis.py') diff --git a/tests/test_apis.py b/tests/test_apis.py index 0943b92..218c009 100644 --- a/tests/test_apis.py +++ b/tests/test_apis.py @@ -46,7 +46,7 @@ class TestBlockParser(unittest.TestCase): root = markdown.util.etree.Element("div") text = 'foo' self.parser.parseChunk(root, text) - self.assertEqual(markdown.searializers.to_xhtml_string(root), + self.assertEqual(markdown.serializers.to_xhtml_string(root), "

foo

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

foo

bar

baz\n
") @@ -303,14 +303,14 @@ class testETreeComments(unittest.TestCase): def testCommentSerialization(self): """ Test that an ElementTree Comment serializes properly. """ - self.assertEqual(markdown.searializers.to_html_string(self.comment), + self.assertEqual(markdown.serializers.to_html_string(self.comment), '') def testCommentPrettify(self): """ Test that an ElementTree Comment is prettified properly. """ pretty = markdown.treeprocessors.PrettifyTreeprocessor() pretty.run(self.comment) - self.assertEqual(markdown.searializers.to_html_string(self.comment), + self.assertEqual(markdown.serializers.to_html_string(self.comment), '\n') @@ -327,7 +327,7 @@ class testAtomicString(unittest.TestCase): p = markdown.util.etree.SubElement(tree, 'p') p.text = u'some *text*' new = self.inlineprocessor.run(tree) - self.assertEqual(markdown.searializers.to_html_string(new), + self.assertEqual(markdown.serializers.to_html_string(new), '

some text

') def testSimpleAtomicString(self): @@ -336,7 +336,7 @@ class testAtomicString(unittest.TestCase): p = markdown.util.etree.SubElement(tree, 'p') p.text = markdown.util.AtomicString(u'some *text*') new = self.inlineprocessor.run(tree) - self.assertEqual(markdown.searializers.to_html_string(new), + self.assertEqual(markdown.serializers.to_html_string(new), '

some *text*

') def testNestedAtomicString(self): @@ -354,7 +354,7 @@ class testAtomicString(unittest.TestCase): span2.tail = markdown.util.AtomicString(u' *test*') span1.tail = markdown.util.AtomicString(u' *with*') new = self.inlineprocessor.run(tree) - self.assertEqual(markdown.searializers.to_html_string(new), + self.assertEqual(markdown.serializers.to_html_string(new), '

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

') -- cgit v1.2.3