diff options
author | Waylan Limberg <waylan@gmail.com> | 2012-01-20 04:39:25 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2012-01-20 04:39:25 -0500 |
commit | dfec5a1a062718caedc24a99c9f31e9fa4a36d15 (patch) | |
tree | d52b49a5122430943a5e451dc8e060b2a80738e1 | |
parent | e484f31b7b416fab2ea8b3cdeec89ac81854f73e (diff) | |
download | markdown-dfec5a1a062718caedc24a99c9f31e9fa4a36d15.tar.gz markdown-dfec5a1a062718caedc24a99c9f31e9fa4a36d15.tar.bz2 markdown-dfec5a1a062718caedc24a99c9f31e9fa4a36d15.zip |
It is spelled 'serializers' not 'searializers'.
-rw-r--r-- | markdown/__init__.py | 2 | ||||
-rw-r--r-- | markdown/serializers.py (renamed from markdown/searializers.py) | 0 | ||||
-rw-r--r-- | tests/test_apis.py | 14 |
3 files changed, 8 insertions, 8 deletions
diff --git a/markdown/__init__.py b/markdown/__init__.py index a08af5b..b06f8e1 100644 --- a/markdown/__init__.py +++ b/markdown/__init__.py @@ -44,7 +44,7 @@ from treeprocessors import build_treeprocessors from inlinepatterns import build_inlinepatterns from postprocessors import build_postprocessors from extensions import Extension -from searializers import to_html_string, to_xhtml_string +from serializers import to_html_string, to_xhtml_string __all__ = ['Markdown', 'markdown', 'markdownFromFile'] diff --git a/markdown/searializers.py b/markdown/serializers.py index 22a83d4..22a83d4 100644 --- a/markdown/searializers.py +++ b/markdown/serializers.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), "<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>') |