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

Method testQNamePreEscaping

tests/test_apis.py:646–653  ·  view source on GitHub ↗

Test `QName` that is already partially escaped.

(self)

Source from the content-addressed store, hash-verified

644 )
645
646 def testQNamePreEscaping(self):
647 """ Test `QName` that is already partially escaped. """
648 qname = etree.QName('<&"test
escaping">', 'div')
649 el = etree.Element(qname)
650 self.assertEqual(
651 markdown.serializers.to_xhtml_string(el),
652 '<div xmlns="&lt;&amp;&quot;test&#10;escaping&quot;&gt;"></div>'
653 )
654
655 def buildExtension(self):
656 """ Build an extension which registers `fakeSerializer`. """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected