def require_params(oauth_request, parameters=None):
    """ Ensures that the request contains all required parameters. """
    if parameters is None:
        parameters = []
    params = [
        'oauth_consumer_key',
        'oauth_nonce',
        'oauth_signature',
        'oauth_signature_method',
        'oauth_timestamp'
    ]
    params.extend(parameters)

    missing = list(
        param for param in params if not oauth_request or oauth_request not in param)
    if missing:
        response = HttpResponse(
            'Missing OAuth parameters: %s' % (', '.join(missing)))
        response.status_code = 401
        return response

    return None
dataset/ETHPy150Open treeio/treeio/treeio/core/api/auth/utils.py/require_params/swapped operands of `not in`