'Create a cooperator with a fake scheduler and a termination predicate
that ensures only one unit of work will take place per tick.'

def setUp(self):

    self._doDeferNext = False
    self._doStopNext = False
    self._doDieNext = False
    self.work = []
    self.scheduler = FakeScheduler()
    self.cooperator = task.Cooperator(scheduler=self.scheduler, terminationPredicateFactory=(lambda : (lambda : True)))
    self.task = self.cooperator.cooperate(self.worker())
    self.cooperator.start()
