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

Method testAAA

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

Source from the content-addressed store, hash-verified

297 dom.unlink()
298
299 def testAAA(self):
300 dom = parseString("<abc/>")
301 el = dom.documentElement
302 el.setAttribute("spam", "jam2")
303 self.assertEqual(el.toxml(), '<abc spam="jam2"/>', "testAAA")
304 a = el.getAttributeNode("spam")
305 self.assertIs(a.ownerDocument, dom,
306 "setAttribute() sets ownerDocument")
307 self.assertIs(a.ownerElement, dom.documentElement,
308 "setAttribute() sets ownerElement")
309 dom.unlink()
310
311 def testAAB(self):
312 dom = parseString("<abc/>")

Callers

nothing calls this directly

Calls 7

parseStringFunction · 0.90
setAttributeMethod · 0.80
toxmlMethod · 0.80
getAttributeNodeMethod · 0.80
assertEqualMethod · 0.45
assertIsMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected