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

Method testProsessingInstruction

tests/test_apis.py:584–591  ·  view source on GitHub ↗

Test serialization of `ProcessignInstruction`.

(self)

Source from the content-addressed store, hash-verified

582 )
583
584 def testProsessingInstruction(self):
585 """ Test serialization of `ProcessignInstruction`. """
586 pi = ProcessingInstruction('foo', text='<&"test\nescaping">')
587 self.assertIs(pi.tag, ProcessingInstruction)
588 self.assertEqual(
589 markdown.serializers.to_xhtml_string(pi),
590 '<?foo &lt;&amp;"test\nescaping"&gt;?>'
591 )
592
593 def testQNameTag(self):
594 """ Test serialization of `QName` tag. """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected