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

Method testElementReprAndStrUnicodeNS

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected