From 3c69b0fb1d86f68a337bf3bd9b4a86b30a5fe6bf Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sun, 21 Jun 2015 21:21:49 -0400 Subject: Fixed many failing tests in inline refactor. Still a ways to go. --- tests/test_apis.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/test_apis.py') 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), '

some text

' ) @@ -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), '

some *text*

' ) @@ -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), '

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

' ) -- cgit v1.2.1