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

Method testReplaceChildFragment

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

Source from the content-addressed store, hash-verified

226 dom.unlink()
227
228 def testReplaceChildFragment(self):
229 dom, orig, c1, c2, c3, frag = self._create_fragment_test_nodes()
230 dom.documentElement.replaceChild(frag, orig)
231 orig.unlink()
232 self.assertTupleEqual(tuple(dom.documentElement.childNodes), (c1, c2, c3),
233 "replaceChild(<fragment>)")
234 frag.unlink()
235 dom.unlink()
236
237 def testLegalChildren(self):
238 dom = Document()

Callers

nothing calls this directly

Calls 4

assertTupleEqualMethod · 0.80
replaceChildMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected