MCPcopy
hub / github.com/Python-Markdown/markdown / testQNameAttribute

Method testQNameAttribute

tests/test_apis.py:598–605  ·  view source on GitHub ↗

Test serialization of `QName` attribute.

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

setMethod · 0.80

Tested by

no test coverage detected