(self)
| 876 | self.assertIsNone(clone) |
| 877 | |
| 878 | def testCloneDocumentTypeShallowOk(self): |
| 879 | doctype = create_nonempty_doctype() |
| 880 | clone = doctype.cloneNode(0) |
| 881 | self.confirm(clone is not None |
| 882 | and clone.nodeName == doctype.nodeName |
| 883 | and clone.name == doctype.name |
| 884 | and clone.publicId == doctype.publicId |
| 885 | and clone.systemId == doctype.systemId |
| 886 | and len(clone.entities) == 0 |
| 887 | and clone.entities.item(0) is None |
| 888 | and len(clone.notations) == 0 |
| 889 | and clone.notations.item(0) is None |
| 890 | and len(clone.childNodes) == 0) |
| 891 | |
| 892 | def testCloneDocumentTypeShallowNotOk(self): |
| 893 | doc = create_doc_with_doctype() |
nothing calls this directly
no test coverage detected