Test `QName` that is already partially escaped.
(self)
| 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="<&"test escaping">"></div>' |
| 653 | ) |
| 654 | |
| 655 | def buildExtension(self): |
| 656 | """ Build an extension which registers `fakeSerializer`. """ |
nothing calls this directly
no outgoing calls
no test coverage detected