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

Method testCloneElementDeep

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

Source from the content-addressed store, hash-verified

792 dom.unlink()
793
794 def testCloneElementDeep(self):
795 dom, clone = self._setupCloneElement(1)
796 self.assertEqual(len(clone.childNodes), 1)
797 self.assertEqual(clone.childNodes.length, 1)
798 self.assertIsNone(clone.parentNode)
799 self.assertTrue(clone.toxml(), '<doc attr="value"><foo/></doc>')
800 dom.unlink()
801
802 def testCloneDocumentShallow(self):
803 doc = parseString("<?xml version='1.0'?>\n"

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected