MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / testQNameAttribute

Method testQNameAttribute

tests/test_apis.py:622–629  ·  view source on GitHub ↗

Test serialization of `QName` attribute.

(self)

Source from the content-addressed store, hash-verified

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. """

Callers

nothing calls this directly

Calls 1

setMethod · 0.80

Tested by

no test coverage detected