aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--markdown/__init__.py2
-rw-r--r--markdown/serializers.py (renamed from markdown/searializers.py)0
-rw-r--r--tests/test_apis.py14
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>')