'L{WorkerReporter.addError} sends a L{managercommands.AddError} command.'

def test_addError(self):

    self.workerReporter.addError(self.test, Failure(RuntimeError('error')))
    self.assertEqual(self.fakeAMProtocol.lastCall, managercommands.AddError)
