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

Method testRemoveNamedItemNS

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

Source from the content-addressed store, hash-verified

718
719 @unittest.expectedFailure # TODO: RUSTPYTHON
720 def testRemoveNamedItemNS(self):
721 doc = parseString("<doc xmlns:a='http://xml.python.org/' a:b=''/>")
722 e = doc.documentElement
723 attrs = e.attributes
724 a1 = e.getAttributeNodeNS("http://xml.python.org/", "b")
725 a2 = attrs.removeNamedItemNS("http://xml.python.org/", "b")
726 self.assertTrue(a1.isSameNode(a2))
727 self.assertRaises(xml.dom.NotFoundErr, attrs.removeNamedItemNS,
728 "http://xml.python.org/", "b")
729
730 def testAttrListValues(self): pass
731

Callers

nothing calls this directly

Calls 6

parseStringFunction · 0.90
getAttributeNodeNSMethod · 0.80
assertTrueMethod · 0.80
isSameNodeMethod · 0.80
removeNamedItemNSMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected