'When an exception is raised in a task passed to L{Team.do}, the
C{logException} given to the L{Team} at construction is invoked in the
exception context.'

def test_exceptionInTask(self):

    self.team.do((lambda : (1 / 0)))
    self.performAllOutstandingWork()
    self.assertEqual(len(self.failures), 1)
    self.assertEqual(self.failures[0].type, ZeroDivisionError)
