aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2012-01-20 04:39:25 -0500
committerWaylan Limberg <waylan@gmail.com>2012-01-20 04:39:25 -0500
commitdfec5a1a062718caedc24a99c9f31e9fa4a36d15 (patch)
treed52b49a5122430943a5e451dc8e060b2a80738e1 /tests
parente484f31b7b416fab2ea8b3cdeec89ac81854f73e (diff)
downloadmarkdown-dfec5a1a062718caedc24a99c9f31e9fa4a36d15.tar.gz
markdown-dfec5a1a062718caedc24a99c9f31e9fa4a36d15.tar.bz2
markdown-dfec5a1a062718caedc24a99c9f31e9fa4a36d15.zip
It is spelled 'serializers' not 'searializers'.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_apis.py14
1 files changed, 7 insertions, 7 deletions
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),
"<div><p>foo</p></div>")
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()),
"<div><h1>foo</h1><p>bar</p><pre><code>baz\n</code></pre></div>")
@@ -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),
'<!--foo-->')
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),
'<!--foo-->\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),
'<div><p>some <em>text</em></p></div>')
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),
'<div><p>some *text*</p></div>')
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),
'<div><p>*some* <span>*more* <span>*text* <span>*here*</span> '
'*to*</span> *test*</span> *with*</p></div>')