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

Method check_clone_pi

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

Source from the content-addressed store, hash-verified

950 self.check_clone_attribute(1, "testCloneAttributeDeep")
951
952 def check_clone_pi(self, deep, testName):
953 doc = parseString("<?target data?><doc/>")
954 pi = doc.firstChild
955 self.assertEqual(pi.nodeType, Node.PROCESSING_INSTRUCTION_NODE)
956 clone = pi.cloneNode(deep)
957 self.confirm(clone.target == pi.target
958 and clone.data == pi.data)
959
960 @unittest.expectedFailure # TODO: RUSTPYTHON
961 def testClonePIShallow(self):

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