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

Method check_clone_pi

Lib/test/test_minidom.py:942–948  ·  view source on GitHub ↗
(self, deep, testName)

Source from the content-addressed store, hash-verified

940 self.check_clone_attribute(1, "testCloneAttributeDeep")
941
942 def check_clone_pi(self, deep, testName):
943 doc = parseString("<?target data?><doc/>")
944 pi = doc.firstChild
945 self.assertEqual(pi.nodeType, Node.PROCESSING_INSTRUCTION_NODE)
946 clone = pi.cloneNode(deep)
947 self.confirm(clone.target == pi.target
948 and clone.data == pi.data)
949
950 def testClonePIShallow(self):
951 self.check_clone_pi(0, "testClonePIShallow")

Callers 2

testClonePIShallowMethod · 0.95
testClonePIDeepMethod · 0.95

Calls 4

confirmMethod · 0.95
parseStringFunction · 0.90
assertEqualMethod · 0.45
cloneNodeMethod · 0.45

Tested by

no test coverage detected