MCPcopy Index your code
hub / github.com/python/cpython / testCloneDocumentTypeShallowOk

Method testCloneDocumentTypeShallowOk

Lib/test/test_minidom.py:878–890  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 4

confirmMethod · 0.95
create_nonempty_doctypeFunction · 0.85
cloneNodeMethod · 0.45
itemMethod · 0.45

Tested by

no test coverage detected