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

Method testProsessingInstruction

tests/test_apis.py:560–567  ·  view source on GitHub ↗

Test serialization of `ProcessignInstruction`.

(self)

Source from the content-addressed store, hash-verified

558 )
559
560 def testProsessingInstruction(self):
561 """ Test serialization of `ProcessignInstruction`. """
562 pi = ProcessingInstruction('foo', text='<&"test\nescaping">')
563 self.assertIs(pi.tag, ProcessingInstruction)
564 self.assertEqual(
565 markdown.serializers.to_xhtml_string(pi),
566 '<?foo &lt;&amp;"test\nescaping"&gt;?>'
567 )
568
569 def testQNameTag(self):
570 """ Test serialization of `QName` tag. """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected