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

Method testCloneDocumentShallow

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

Source from the content-addressed store, hash-verified

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"

Callers

nothing calls this directly

Calls 3

parseStringFunction · 0.90
assertIsNoneMethod · 0.80
cloneNodeMethod · 0.45

Tested by

no test coverage detected