def test_stopExhausted(self):
        self.stopNext()
        self.scheduler.pump()
        self.assertRaises(task.TaskDone, self.task.stop)
C{stop()}ping a L{CooperativeTask} whose iterator has been exhausted
dataset/ETHPy150Open twisted/twisted/twisted/test/test_cooperator.py/RunStateTests.test_stopExhausted