Test serialization of `QName` attribute.
(self)
| 620 | ) |
| 621 | |
| 622 | def testQNameAttribute(self): |
| 623 | """ Test serialization of `QName` attribute. """ |
| 624 | div = etree.Element('div') |
| 625 | div.set(etree.QName('foo'), etree.QName('bar')) |
| 626 | self.assertEqual( |
| 627 | markdown.serializers.to_xhtml_string(div), |
| 628 | '<div foo="bar"></div>' |
| 629 | ) |
| 630 | |
| 631 | def testBadQNameTag(self): |
| 632 | """ Test serialization of `QName` with no tag. """ |