def test_indexing(self):
        ll = LazyList(get_more=self._get_more_not_exhausted)

        self.assertEqual(ll[0], 1)
        self.assertEqual(ll[9], 10)
        self.assertEqual(ll[-1], 10)

        try:
            ll[11]
        except __HOLE__:
            pass
        else:
            self.fail('Exception was not thrown')
dataset/ETHPy150Open apache/libcloud/libcloud/test/test_types.py/TestLazyList.test_indexing