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

Method testRenameOther

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

Source from the content-addressed store, hash-verified

1446 doc.unlink()
1447
1448 def testRenameOther(self):
1449 # We have to create a comment node explicitly since not all DOM
1450 # builders used with minidom add comments to the DOM.
1451 doc = xml.dom.minidom.getDOMImplementation().createDocument(
1452 xml.dom.EMPTY_NAMESPACE, "e", None)
1453 node = doc.createComment("comment")
1454 self.assertRaises(xml.dom.NotSupportedErr, doc.renameNode, node,
1455 xml.dom.EMPTY_NAMESPACE, "foo")
1456 doc.unlink()
1457
1458 def testWholeText(self):
1459 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