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

Method setup

Lib/test/test_minidom.py:1520–1528  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1518
1519 def testReplaceWholeText(self):
1520 def setup():
1521 doc = parseString("<doc>a<e/>d</doc>")
1522 elem = doc.documentElement
1523 text1 = elem.firstChild
1524 text2 = elem.lastChild
1525 splitter = text1.nextSibling
1526 elem.insertBefore(doc.createTextNode("b"), splitter)
1527 elem.insertBefore(doc.createCDATASection("c"), text1)
1528 return doc, elem, text1, splitter, text2
1529
1530 doc, elem, text1, splitter, text2 = setup()
1531 text = text1.replaceWholeText("new content")

Callers

nothing calls this directly

Calls 4

parseStringFunction · 0.90
createTextNodeMethod · 0.80
createCDATASectionMethod · 0.80
insertBeforeMethod · 0.45

Tested by

no test coverage detected