def test_position(self):
        xp = XPathQuery("/foo/bar[2]")
        self.assertEquals(xp.matches(self.e), 1)
        self.assertEquals(xp.queryForNodes(self.e), [self.bar1])
Test finding element at position.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/words/test/test_xpath.py/XPathTest.test_position