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

Method testCommentSerialization

tests/test_apis.py:455–460  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

453 self.assertIs(md.is_block_level(self.comment.tag), False)
454
455 def testCommentSerialization(self):
456 """ Test that an `ElementTree` `Comment` serializes properly. """
457 self.assertEqual(
458 markdown.serializers.to_html_string(self.comment),
459 '<!--foo-->'
460 )
461
462 def testCommentPrettify(self):
463 """ Test that an `ElementTree` `Comment` is prettified properly. """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected