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

Method testGetAttrValues

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

Source from the content-addressed store, hash-verified

449 self.assertIn(('foo', 'bar'), items)
450
451 def testGetAttrValues(self):
452 dom = parseString("<abc/>")
453 self.addCleanup(dom.unlink)
454 el = dom.documentElement
455 el.setAttribute("spam", "jam")
456 values = [x.value for x in el.attributes.values()]
457 self.assertIn("jam", values)
458 el.setAttribute("foo", "bar")
459 values = [x.value for x in el.attributes.values()]
460 self.assertIn("bar", values)
461 self.assertIn("jam", values)
462
463 def testGetAttribute(self):
464 dom = Document()

Callers

nothing calls this directly

Calls 5

parseStringFunction · 0.90
addCleanupMethod · 0.80
setAttributeMethod · 0.80
assertInMethod · 0.80
valuesMethod · 0.45

Tested by

no test coverage detected