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

Method testCloneElementDeep

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

Source from the content-addressed store, hash-verified

800 dom.unlink()
801
802 def testCloneElementDeep(self):
803 dom, clone = self._setupCloneElement(1)
804 self.assertEqual(len(clone.childNodes), 1)
805 self.assertEqual(clone.childNodes.length, 1)
806 self.assertIsNone(clone.parentNode)
807 self.assertTrue(clone.toxml(), '<doc attr="value"><foo/></doc>')
808 dom.unlink()
809
810 def testCloneDocumentShallow(self):
811 doc = parseString("<?xml version='1.0'?>\n"

Callers

nothing calls this directly

Calls 7

_setupCloneElementMethod · 0.95
lenFunction · 0.85
assertIsNoneMethod · 0.80
assertTrueMethod · 0.80
toxmlMethod · 0.80
assertEqualMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected