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

Method testAppendChildFragment

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

Source from the content-addressed store, hash-verified

217 self.assertEqual(elem.getAttribute("id"), "test-id")
218
219 def testAppendChildFragment(self):
220 dom, orig, c1, c2, c3, frag = self._create_fragment_test_nodes()
221 dom.documentElement.appendChild(frag)
222 self.assertTupleEqual(tuple(dom.documentElement.childNodes),
223 (orig, c1, c2, c3),
224 "appendChild(<fragment>)")
225 frag.unlink()
226 dom.unlink()
227
228 def testReplaceChildFragment(self):
229 dom, orig, c1, c2, c3, frag = self._create_fragment_test_nodes()

Callers

nothing calls this directly

Calls 4

assertTupleEqualMethod · 0.80
appendChildMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected