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

Method testCloneDocumentShallow

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

Source from the content-addressed store, hash-verified

800 dom.unlink()
801
802 def testCloneDocumentShallow(self):
803 doc = parseString("<?xml version='1.0'?>\n"
804 "<!-- comment -->"
805 "<!DOCTYPE doc [\n"
806 "<!NOTATION notation SYSTEM 'http://xml.python.org/'>\n"
807 "]>\n"
808 "<doc attr='value'/>")
809 doc2 = doc.cloneNode(0)
810 self.assertIsNone(doc2,
811 "testCloneDocumentShallow:"
812 " shallow cloning of documents makes no sense!")
813
814 def testCloneDocumentDeep(self):
815 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