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

Method testCloneElementShallow

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

Source from the content-addressed store, hash-verified

791
792 @unittest.expectedFailure # TODO: RUSTPYTHON
793 def testCloneElementShallow(self):
794 dom, clone = self._setupCloneElement(0)
795 self.assertEqual(len(clone.childNodes), 0)
796 self.assertEqual(clone.childNodes.length, 0)
797 self.assertIsNone(clone.parentNode)
798 self.assertEqual(clone.toxml(), '<doc attr="value"/>')
799
800 dom.unlink()
801
802 def testCloneElementDeep(self):
803 dom, clone = self._setupCloneElement(1)

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected