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

Method testAAB

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

Source from the content-addressed store, hash-verified

309 dom.unlink()
310
311 def testAAB(self):
312 dom = parseString("<abc/>")
313 el = dom.documentElement
314 el.setAttribute("spam", "jam")
315 el.setAttribute("spam", "jam2")
316 self.assertEqual(el.toxml(), '<abc spam="jam2"/>', "testAAB")
317 dom.unlink()
318
319 def testAddAttr(self):
320 dom = Document()

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected