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

Method testCommentPrettify

tests/test_apis.py:438–445  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

436 )
437
438 def testCommentPrettify(self):
439 """ Test that an `ElementTree` `Comment` is prettified properly. """
440 pretty = markdown.treeprocessors.PrettifyTreeprocessor(markdown.Markdown())
441 pretty.run(self.comment)
442 self.assertEqual(
443 markdown.serializers.to_html_string(self.comment),
444 '<!--foo-->\n'
445 )
446
447
448class testElementTailTests(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

runMethod · 0.95

Tested by

no test coverage detected