'L{defer.logError} returns the given error.'

def test_logErrorReturnsError(self):

    error = failure.Failure(RuntimeError())
    result = defer.logError(error)
    self.flushLoggedErrors(RuntimeError)
    self.assertIs(error, result)
