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

Method testGetAttribute

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

Source from the content-addressed store, hash-verified

461 self.assertIn("jam", values)
462
463 def testGetAttribute(self):
464 dom = Document()
465 child = dom.appendChild(
466 dom.createElementNS("http://www.python.org", "python:abc"))
467 self.assertEqual(child.getAttribute('missing'), '')
468
469 def testGetAttributeNS(self):
470 dom = Document()

Callers

nothing calls this directly

Calls 5

appendChildMethod · 0.95
createElementNSMethod · 0.95
DocumentClass · 0.90
getAttributeMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected