'Send an expected failure over.'

def addExpectedFailure(self, test, error, todo=None):

    super(WorkerReporter, self).addExpectedFailure(test, error, todo)
    errorMessage = error.getErrorMessage().encode('utf-8')
    testName = test.id()
    if isinstance(testName, unicode):
        testName = testName.encode('utf-8')
    self.ampProtocol.callRemote(managercommands.AddExpectedFailure, testName=testName, error=errorMessage, todo=self._getTodoReason(todo))
