Test `QName` that is already partially escaped.
(self)
| 620 | ) |
| 621 | |
| 622 | def testQNamePreEscaping(self): |
| 623 | """ Test `QName` that is already partially escaped. """ |
| 624 | qname = etree.QName('<&"test escaping">', 'div') |
| 625 | el = etree.Element(qname) |
| 626 | self.assertEqual( |
| 627 | markdown.serializers.to_xhtml_string(el), |
| 628 | '<div xmlns="<&"test escaping">"></div>' |
| 629 | ) |
| 630 | |
| 631 | def buildExtension(self): |
| 632 | """ Build an extension which registers `fakeSerializer`. """ |
nothing calls this directly
no outgoing calls
no test coverage detected