def test_override_iter(self):
        class MyList (ArrayList):
            def __iter__(self):
                return iter(self.subList(0, self.size() - 1));


        m = MyList()
        m.addAll(range(0,10))
        i = iter(m)
        x = list(i)

        self.assert_(x == range(0, 9))
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_java_list_delegate.py/CollectionProxyTest.test_override_iter/original