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

Method testNodeListItem

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

Source from the content-addressed store, hash-verified

1250 doc.unlink()
1251
1252 def testNodeListItem(self):
1253 doc = parseString("<doc><e/><e/></doc>")
1254 children = doc.childNodes
1255 docelem = children[0]
1256 self.confirm(children[0] is children.item(0)
1257 and children.item(1) is None
1258 and docelem.childNodes.item(0) is docelem.childNodes[0]
1259 and docelem.childNodes.item(1) is docelem.childNodes[1]
1260 and docelem.childNodes.item(0).childNodes.item(0) is None,
1261 "test NodeList.item()")
1262 doc.unlink()
1263
1264 @unittest.expectedFailure # TODO: RUSTPYTHON
1265 def testEncodings(self):

Callers

nothing calls this directly

Calls 4

confirmMethod · 0.95
parseStringFunction · 0.90
itemMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected