MCPcopy Index your code
hub / github.com/python/cpython / testAttributeRepr

Method testAttributeRepr

Lib/test/test_minidom.py:548–553  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

546 dom.unlink()
547
548 def testAttributeRepr(self):
549 dom = Document()
550 el = dom.appendChild(dom.createElement("abc"))
551 node = el.setAttribute("abc", "def")
552 self.assertEqual(str(node), repr(node))
553 dom.unlink()
554
555 def testWriteXML(self):
556 str = '<?xml version="1.0" ?><a b="c"/>'

Callers

nothing calls this directly

Calls 7

appendChildMethod · 0.95
createElementMethod · 0.95
unlinkMethod · 0.95
DocumentClass · 0.90
strFunction · 0.85
setAttributeMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected