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

Method testBrTailNoNewline

tests/test_apis.py:453–459  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

451 self.pretty = markdown.treeprocessors.PrettifyTreeprocessor(markdown.Markdown())
452
453 def testBrTailNoNewline(self):
454 """ Test that last `<br>` in tree has a new line tail """
455 root = etree.Element('root')
456 br = etree.SubElement(root, 'br')
457 self.assertEqual(br.tail, None)
458 self.pretty.run(root)
459 self.assertEqual(br.tail, "\n")
460
461
462class testElementPreCodeTests(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected