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

Method testAppendChild

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

Source from the content-addressed store, hash-verified

167 dom.unlink()
168
169 def testAppendChild(self):
170 dom = parse(tstfile)
171 dom.documentElement.appendChild(dom.createComment("Hello"))
172 self.assertEqual(dom.documentElement.childNodes[-1].nodeName, "#comment")
173 self.assertEqual(dom.documentElement.childNodes[-1].data, "Hello")
174 dom.unlink()
175
176 @support.requires_resource('cpu')
177 def testAppendChildNoQuadraticComplexity(self):

Callers

nothing calls this directly

Calls 5

parseFunction · 0.90
createCommentMethod · 0.80
appendChildMethod · 0.45
assertEqualMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected