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

Method testHasAttribute

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

Source from the content-addressed store, hash-verified

392 dom.unlink()
393
394 def testHasAttribute(self):
395 dom = Document()
396 child = dom.appendChild(dom.createElement("foo"))
397 child.setAttribute("spam", "jam")
398 self.assertTrue(child.hasAttribute("spam"))
399
400 def testChangeAttr(self):
401 dom = parseString("<abc/>")

Callers

nothing calls this directly

Calls 6

appendChildMethod · 0.95
createElementMethod · 0.95
DocumentClass · 0.90
setAttributeMethod · 0.80
assertTrueMethod · 0.80
hasAttributeMethod · 0.80

Tested by

no test coverage detected