(self)
| 884 | self.assertIsNone(clone) |
| 885 | |
| 886 | def testCloneDocumentTypeShallowOk(self): |
| 887 | doctype = create_nonempty_doctype() |
| 888 | clone = doctype.cloneNode(0) |
| 889 | self.confirm(clone is not None |
| 890 | and clone.nodeName == doctype.nodeName |
| 891 | and clone.name == doctype.name |
| 892 | and clone.publicId == doctype.publicId |
| 893 | and clone.systemId == doctype.systemId |
| 894 | and len(clone.entities) == 0 |
| 895 | and clone.entities.item(0) is None |
| 896 | and len(clone.notations) == 0 |
| 897 | and clone.notations.item(0) is None |
| 898 | and len(clone.childNodes) == 0) |
| 899 | |
| 900 | def testCloneDocumentTypeShallowNotOk(self): |
| 901 | doc = create_doc_with_doctype() |
nothing calls this directly
no test coverage detected