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

Method testRemoveNamedItem

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

Source from the content-addressed store, hash-verified

708
709 @unittest.expectedFailure # TODO: RUSTPYTHON
710 def testRemoveNamedItem(self):
711 doc = parseString("<doc a=''/>")
712 e = doc.documentElement
713 attrs = e.attributes
714 a1 = e.getAttributeNode("a")
715 a2 = attrs.removeNamedItem("a")
716 self.assertTrue(a1.isSameNode(a2))
717 self.assertRaises(xml.dom.NotFoundErr, attrs.removeNamedItem, "a")
718
719 @unittest.expectedFailure # TODO: RUSTPYTHON
720 def testRemoveNamedItemNS(self):

Callers

nothing calls this directly

Calls 6

parseStringFunction · 0.90
getAttributeNodeMethod · 0.80
assertTrueMethod · 0.80
isSameNodeMethod · 0.80
removeNamedItemMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected