'C{stop()}ping a L{CooperativeTask} whose iterator has encountered an
error should raise L{TaskFailed}.'

def test_stopErrored(self):

    self.dieNext()
    self.scheduler.pump()
    self.assertRaises(task.TaskFailed, self.task.stop)
