'C{stop()}ping a L{CooperativeTask} whose iterator has been exhausted
should raise L{TaskDone}.'

def test_stopExhausted(self):

    self.stopNext()
    self.scheduler.pump()
    self.assertRaises(task.TaskDone, self.task.stop)
