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

Method testElement

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

Source from the content-addressed store, hash-verified

291 self.assertFalse(dom.childNodes)
292
293 def testElement(self):
294 dom = Document()
295 dom.appendChild(dom.createElement("abc"))
296 self.assertTrue(dom.documentElement)
297 dom.unlink()
298
299 def testAAA(self):
300 dom = parseString("<abc/>")

Callers

nothing calls this directly

Calls 5

appendChildMethod · 0.95
createElementMethod · 0.95
unlinkMethod · 0.95
DocumentClass · 0.90
assertTrueMethod · 0.80

Tested by

no test coverage detected