def testEveryIteration(self):
        ran = []

        def foo():
            ran.append(None)
            if 5 > len(ran):
                lc.stop()

        lc = task.LoopingCall(foo)
        d = lc.start(0)
        def stopped(ign):
            self.assertEqual(len(ran), 6)
        return d.addCallback(stopped)
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_task.py/ReactorLoopTestCase.testEveryIteration/swapped operands of `>`