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

Method testTextRepr

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

Source from the content-addressed store, hash-verified

666 self.assertEqual(str(pi.nodeType), repr(pi.nodeType))
667
668 def testTextRepr(self):
669 dom = Document()
670 self.addCleanup(dom.unlink)
671 elem = dom.createElement("elem")
672 elem.appendChild(dom.createTextNode("foo"))
673 el = elem.firstChild
674 self.assertEqual(str(el), repr(el))
675 self.assertEqual('<DOM Text node "\'foo\'">', str(el))
676
677 def testWriteText(self): pass
678

Callers

nothing calls this directly

Calls 8

createElementMethod · 0.95
createTextNodeMethod · 0.95
DocumentClass · 0.90
strFunction · 0.85
reprFunction · 0.85
addCleanupMethod · 0.80
appendChildMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected