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

Method testBrTailNoNewline

tests/test_apis.py:477–483  ·  view source on GitHub ↗

Test that last ` ` in tree has a new line tail

(self)

Source from the content-addressed store, hash-verified

475 self.pretty = markdown.treeprocessors.PrettifyTreeprocessor(markdown.Markdown())
476
477 def testBrTailNoNewline(self):
478 """ Test that last `<br>` in tree has a new line tail """
479 root = etree.Element('root')
480 br = etree.SubElement(root, 'br')
481 self.assertEqual(br.tail, None)
482 self.pretty.run(root)
483 self.assertEqual(br.tail, "\n")
484
485
486class testElementPreCodeTests(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected