MCPcopy Index your code
hub / github.com/RustPython/RustPython / testElementReprAndStr

Method testElementReprAndStr

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected