def test_user_iter(self):

    class C(object):

        def next(self):
            raise StopIteration

        def __iter__(self):
            return self
    assert (list(C()) == [])
def test_user_iter(self):

    class C(object):

        def next(self):
            raise StopIteration

        def __iter__(self):
            return self
    assert (list(C()) == [])