aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_apis.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_apis.py b/tests/test_apis.py
index 114b09d..0de4727 100644
--- a/tests/test_apis.py
+++ b/tests/test_apis.py
@@ -301,14 +301,18 @@ class testETreeComments(unittest.TestCase):
def setUp(self):
# Create comment node
self.comment = markdown.util.etree.Comment('foo')
+ if hasattr(markdown.util.etree, 'test_comment'):
+ self.test_comment = markdown.util.etree.test_comment
+ else:
+ self.test_comment = markdown.util.etree.Comment
def testCommentIsComment(self):
""" Test that an ElementTree Comment passes the `is Comment` test. """
- self.assert_(self.comment.tag is markdown.util.etree.Comment)
+ self.assert_(self.comment.tag is markdown.util.etree.test_comment)
def testCommentIsBlockLevel(self):
""" Test that an ElementTree Comment is recognized as BlockLevel. """
- self.assert_(markdown.util.isBlockLevel(self.comment.tag))
+ self.assertFalse(markdown.util.isBlockLevel(self.comment.tag))
def testCommentSerialization(self):
""" Test that an ElementTree Comment serializes properly. """