(self)
| 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( |
nothing calls this directly
no test coverage detected