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

Method testPatch1094164

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

Source from the content-addressed store, hash-verified

1492 self.checkWholeText(text2, "cabd")
1493
1494 def testPatch1094164(self):
1495 doc = parseString("<doc><e/></doc>")
1496 elem = doc.documentElement
1497 e = elem.firstChild
1498 self.assertIs(e.parentNode, elem, "Before replaceChild()")
1499 # Check that replacing a child with itself leaves the tree unchanged
1500 elem.replaceChild(e, e)
1501 self.assertIs(e.parentNode, elem, "After replaceChild()")
1502
1503 def testReplaceWholeText(self):
1504 def setup():

Callers

nothing calls this directly

Calls 3

parseStringFunction · 0.90
assertIsMethod · 0.45
replaceChildMethod · 0.45

Tested by

no test coverage detected