(self)
| 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>") |
nothing calls this directly
no test coverage detected