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

Method testElementReprAndStrUnicodeNS

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

Source from the content-addressed store, hash-verified

537 dom.unlink()
538
539 def testElementReprAndStrUnicodeNS(self):
540 dom = Document()
541 el = dom.appendChild(
542 dom.createElementNS("http://www.slashdot.org", "slash:abc"))
543 string1 = repr(el)
544 string2 = str(el)
545 self.assertEqual(string1, string2)
546 self.assertIn("slash:abc", string1)
547 dom.unlink()
548
549 def testAttributeRepr(self):
550 dom = Document()

Callers

nothing calls this directly

Calls 8

appendChildMethod · 0.95
createElementNSMethod · 0.95
unlinkMethod · 0.95
DocumentClass · 0.90
reprFunction · 0.85
strFunction · 0.85
assertInMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected