diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2015-06-21 21:21:49 -0400 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2015-06-21 21:21:49 -0400 |
commit | 3c69b0fb1d86f68a337bf3bd9b4a86b30a5fe6bf (patch) | |
tree | 6972f33b04d940e77486818e6676755550817107 /tests/test_apis.py | |
parent | de76d24283aa62a81e2c4529c4d90fb388ddd26d (diff) | |
download | python-markdown-inline.tar.gz |
Fixed many failing tests in inline refactor. Still a ways to go.inline
Diffstat (limited to 'tests/test_apis.py')
-rw-r--r-- | tests/test_apis.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_apis.py b/tests/test_apis.py index 919d049..44749ab 100644 --- a/tests/test_apis.py +++ b/tests/test_apis.py @@ -521,9 +521,9 @@ class testAtomicString(unittest.TestCase): tree = markdown.util.etree.Element('div') p = markdown.util.etree.SubElement(tree, 'p') p.text = 'some *text*' - new = self.inlineprocessor.run(tree) + self.inlineprocessor.run(tree) self.assertEqual( - markdown.serializers.to_html_string(new), + markdown.serializers.to_html_string(tree), '<div><p>some <em>text</em></p></div>' ) @@ -532,9 +532,9 @@ class testAtomicString(unittest.TestCase): tree = markdown.util.etree.Element('div') p = markdown.util.etree.SubElement(tree, 'p') p.text = markdown.util.AtomicString('some *text*') - new = self.inlineprocessor.run(tree) + self.inlineprocessor.run(tree) self.assertEqual( - markdown.serializers.to_html_string(new), + markdown.serializers.to_html_string(tree), '<div><p>some *text*</p></div>' ) @@ -552,9 +552,9 @@ class testAtomicString(unittest.TestCase): span3.tail = markdown.util.AtomicString(' *to*') span2.tail = markdown.util.AtomicString(' *test*') span1.tail = markdown.util.AtomicString(' *with*') - new = self.inlineprocessor.run(tree) + self.inlineprocessor.run(tree) self.assertEqual( - markdown.serializers.to_html_string(new), + markdown.serializers.to_html_string(tree), '<div><p>*some* <span>*more* <span>*text* <span>*here*</span> ' '*to*</span> *test*</span> *with*</p></div>' ) |