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

Method testDocRemoveChild

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

Source from the content-addressed store, hash-verified

1755 )
1756
1757 def testDocRemoveChild(self):
1758 doc = parse(tstfile)
1759 title_tag = doc.documentElement.getElementsByTagName("TITLE")[0]
1760 self.assertRaises( xml.dom.NotFoundErr, doc.removeChild, title_tag)
1761 num_children_before = len(doc.childNodes)
1762 doc.removeChild(doc.childNodes[0])
1763 num_children_after = len(doc.childNodes)
1764 self.assertEqual(num_children_after, num_children_before - 1)
1765
1766 def testProcessingInstructionNameError(self):
1767 # wrong variable in .nodeValue property will

Callers

nothing calls this directly

Calls 6

parseFunction · 0.90
lenFunction · 0.85
getElementsByTagNameMethod · 0.45
assertRaisesMethod · 0.45
removeChildMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected