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

Method testRenameOther

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

Source from the content-addressed store, hash-verified

1462 doc.unlink()
1463
1464 def testRenameOther(self):
1465 # We have to create a comment node explicitly since not all DOM
1466 # builders used with minidom add comments to the DOM.
1467 doc = xml.dom.minidom.getDOMImplementation().createDocument(
1468 xml.dom.EMPTY_NAMESPACE, "e", None)
1469 node = doc.createComment("comment")
1470 self.assertRaises(xml.dom.NotSupportedErr, doc.renameNode, node,
1471 xml.dom.EMPTY_NAMESPACE, "foo")
1472 doc.unlink()
1473
1474 def testWholeText(self):
1475 doc = parseString("<doc>a</doc>")

Callers

nothing calls this directly

Calls 4

createDocumentMethod · 0.80
createCommentMethod · 0.80
assertRaisesMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected