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

Method testPreCodeEmpty

tests/test_apis.py:497–500  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

495 return etree.tostring(root, encoding="unicode", short_empty_elements=False)
496
497 def testPreCodeEmpty(self):
498 xml = "<pre><code></code></pre>"
499 expected = "<pre><code></code></pre>\n"
500 self.assertEqual(expected, self.prettify(xml))
501
502 def testPreCodeWithChildren(self):
503 xml = "<pre><code> <span /></code></pre>"

Callers

nothing calls this directly

Calls 1

prettifyMethod · 0.95

Tested by

no test coverage detected