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

def test_logErrorLogsError(self):

    error = failure.Failure(RuntimeError())
    defer.logError(error)
    errors = self.flushLoggedErrors(RuntimeError)
    self.assertEqual(errors, [error])
