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

Method testPreCodeEmpty

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

Source from the content-addressed store, hash-verified

471 return etree.tostring(root, encoding="unicode", short_empty_elements=False)
472
473 def testPreCodeEmpty(self):
474 xml = "<pre><code></code></pre>"
475 expected = "<pre><code></code></pre>\n"
476 self.assertEqual(expected, self.prettify(xml))
477
478 def testPreCodeWithChildren(self):
479 xml = "<pre><code> <span /></code></pre>"

Callers

nothing calls this directly

Calls 1

prettifyMethod · 0.95

Tested by

no test coverage detected