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

Method testNonZero

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

Source from the content-addressed store, hash-verified

273 dom.unlink()
274
275 def testNonZero(self):
276 dom = parse(tstfile)
277 self.assertTrue(dom) # should not be zero
278 dom.appendChild(dom.createComment("foo"))
279 self.assertFalse(dom.childNodes[-1].childNodes)
280 dom.unlink()
281
282 def testUnlink(self):
283 dom = parse(tstfile)

Callers

nothing calls this directly

Calls 6

parseFunction · 0.90
assertTrueMethod · 0.80
createCommentMethod · 0.80
assertFalseMethod · 0.80
appendChildMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected