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

Method testCommentSerialization

tests/test_apis.py:431–436  ·  view source on GitHub ↗

Test that an `ElementTree` `Comment` serializes properly.

(self)

Source from the content-addressed store, hash-verified

429 self.assertIs(md.is_block_level(self.comment.tag), False)
430
431 def testCommentSerialization(self):
432 """ Test that an `ElementTree` `Comment` serializes properly. """
433 self.assertEqual(
434 markdown.serializers.to_html_string(self.comment),
435 '<!--foo-->'
436 )
437
438 def testCommentPrettify(self):
439 """ Test that an `ElementTree` `Comment` is prettified properly. """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected