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