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

Method testElementReprAndStr

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

Source from the content-addressed store, hash-verified

520 doc, "http://somewhere.else.net/not-there", "e")
521
522 def testElementReprAndStr(self):
523 dom = Document()
524 el = dom.appendChild(dom.createElement("abc"))
525 string1 = repr(el)
526 string2 = str(el)
527 self.assertEqual(string1, string2)
528 dom.unlink()
529
530 def testElementReprAndStrUnicode(self):
531 dom = Document()

Callers

nothing calls this directly

Calls 6

appendChildMethod · 0.95
createElementMethod · 0.95
unlinkMethod · 0.95
DocumentClass · 0.90
strFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected