(self)
| 800 | dom.unlink() |
| 801 | |
| 802 | def testCloneDocumentShallow(self): |
| 803 | doc = parseString("<?xml version='1.0'?>\n" |
| 804 | "<!-- comment -->" |
| 805 | "<!DOCTYPE doc [\n" |
| 806 | "<!NOTATION notation SYSTEM 'http://xml.python.org/'>\n" |
| 807 | "]>\n" |
| 808 | "<doc attr='value'/>") |
| 809 | doc2 = doc.cloneNode(0) |
| 810 | self.assertIsNone(doc2, |
| 811 | "testCloneDocumentShallow:" |
| 812 | " shallow cloning of documents makes no sense!") |
| 813 | |
| 814 | def testCloneDocumentDeep(self): |
| 815 | doc = parseString("<?xml version='1.0'?>\n" |
nothing calls this directly
no test coverage detected