MCPcopy Index your code
hub / github.com/RustPython/RustPython / testCloneDocumentTypeShallowOk

Method testCloneDocumentTypeShallowOk

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected