MCPcopy Index your code
hub / github.com/RustPython/RustPython / testPatch1094164

Method testPatch1094164

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

Source from the content-addressed store, hash-verified

1508 self.checkWholeText(text2, "cabd")
1509
1510 def testPatch1094164(self):
1511 doc = parseString("<doc><e/></doc>")
1512 elem = doc.documentElement
1513 e = elem.firstChild
1514 self.assertIs(e.parentNode, elem, "Before replaceChild()")
1515 # Check that replacing a child with itself leaves the tree unchanged
1516 elem.replaceChild(e, e)
1517 self.assertIs(e.parentNode, elem, "After replaceChild()")
1518
1519 def testReplaceWholeText(self):
1520 def setup():

Callers

nothing calls this directly

Calls 3

parseStringFunction · 0.90
assertIsMethod · 0.45
replaceChildMethod · 0.45

Tested by

no test coverage detected