Test `QName` escaping.
(self)
| 611 | self.assertRaises(ValueError, markdown.serializers.to_xhtml_string, el) |
| 612 | |
| 613 | def testQNameEscaping(self): |
| 614 | """ Test `QName` escaping. """ |
| 615 | qname = etree.QName('<&"test\nescaping">', 'div') |
| 616 | el = etree.Element(qname) |
| 617 | self.assertEqual( |
| 618 | markdown.serializers.to_xhtml_string(el), |
| 619 | '<div xmlns="<&"test escaping">"></div>' |
| 620 | ) |
| 621 | |
| 622 | def testQNamePreEscaping(self): |
| 623 | """ Test `QName` that is already partially escaped. """ |
nothing calls this directly
no outgoing calls
no test coverage detected