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

Method testRemoveNamedItemNS

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

Source from the content-addressed store, hash-verified

711 self.assertRaises(xml.dom.NotFoundErr, attrs.removeNamedItem, "a")
712
713 def testRemoveNamedItemNS(self):
714 doc = parseString("<doc xmlns:a='http://xml.python.org/' a:b=''/>")
715 e = doc.documentElement
716 attrs = e.attributes
717 a1 = e.getAttributeNodeNS("http://xml.python.org/", "b")
718 a2 = attrs.removeNamedItemNS("http://xml.python.org/", "b")
719 self.assertTrue(a1.isSameNode(a2))
720 self.assertRaises(xml.dom.NotFoundErr, attrs.removeNamedItemNS,
721 "http://xml.python.org/", "b")
722
723 def testAttrListValues(self): pass
724

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