Test serialization of `QName` attribute.
(self)
| 596 | ) |
| 597 | |
| 598 | def testQNameAttribute(self): |
| 599 | """ Test serialization of `QName` attribute. """ |
| 600 | div = etree.Element('div') |
| 601 | div.set(etree.QName('foo'), etree.QName('bar')) |
| 602 | self.assertEqual( |
| 603 | markdown.serializers.to_xhtml_string(div), |
| 604 | '<div foo="bar"></div>' |
| 605 | ) |
| 606 | |
| 607 | def testBadQNameTag(self): |
| 608 | """ Test serialization of `QName` with no tag. """ |