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

Method testSiblings

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

Source from the content-addressed store, hash-verified

1207 "Final child's .nextSibling should be None")
1208
1209 def testSiblings(self):
1210 doc = parseString("<doc><?pi?>text?<elm/></doc>")
1211 root = doc.documentElement
1212 (pi, text, elm) = root.childNodes
1213
1214 self.confirm(pi.nextSibling is text and
1215 pi.previousSibling is None and
1216 text.nextSibling is elm and
1217 text.previousSibling is pi and
1218 elm.nextSibling is None and
1219 elm.previousSibling is text, "testSiblings")
1220
1221 doc.unlink()
1222
1223 def testParents(self):
1224 doc = parseString(

Callers

nothing calls this directly

Calls 3

confirmMethod · 0.95
parseStringFunction · 0.90
unlinkMethod · 0.45

Tested by

no test coverage detected