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

Method testCommentPrettify

tests/test_apis.py:462–469  ·  view source on GitHub ↗

Test that an `ElementTree` `Comment` is prettified properly.

(self)

Source from the content-addressed store, hash-verified

460 )
461
462 def testCommentPrettify(self):
463 """ Test that an `ElementTree` `Comment` is prettified properly. """
464 pretty = markdown.treeprocessors.PrettifyTreeprocessor(markdown.Markdown())
465 pretty.run(self.comment)
466 self.assertEqual(
467 markdown.serializers.to_html_string(self.comment),
468 '<!--foo-->\n'
469 )
470
471
472class testElementTailTests(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

runMethod · 0.95

Tested by

no test coverage detected