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

Method testElementReprAndStrUnicode

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

Source from the content-addressed store, hash-verified

528 dom.unlink()
529
530 def testElementReprAndStrUnicode(self):
531 dom = Document()
532 el = dom.appendChild(dom.createElement("abc"))
533 string1 = repr(el)
534 string2 = str(el)
535 self.assertEqual(string1, string2)
536 dom.unlink()
537
538 def testElementReprAndStrUnicodeNS(self):
539 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