MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / testCommentIsBlockLevel

Method testCommentIsBlockLevel

tests/test_apis.py:426–429  ·  view source on GitHub ↗

Test that an `ElementTree` `Comment` is recognized as `BlockLevel`.

(self)

Source from the content-addressed store, hash-verified

424 self.assertIs(self.comment.tag, etree.Comment)
425
426 def testCommentIsBlockLevel(self):
427 """ Test that an `ElementTree` `Comment` is recognized as `BlockLevel`. """
428 md = markdown.Markdown()
429 self.assertIs(md.is_block_level(self.comment.tag), False)
430
431 def testCommentSerialization(self):
432 """ Test that an `ElementTree` `Comment` serializes properly. """

Callers

nothing calls this directly

Calls 1

is_block_levelMethod · 0.95

Tested by

no test coverage detected