def get_conditional_operator(self, operator):
    '\n        Returns a dictionary containing the correct conditional operator,\n        validating it first.\n        '
    operator = operator.upper()
    if (operator not in CONDITIONAL_OPERATORS):
        raise ValueError('The {0} must be one of {1}'.format(CONDITIONAL_OPERATOR, CONDITIONAL_OPERATORS))
    return {CONDITIONAL_OPERATOR: operator}
Returns a dictionary containing the correct conditional operator,
validating it first.
def get_conditional_operator(self, operator):
    '\n        Returns a dictionary containing the correct conditional operator,\n        validating it first.\n        '
    operator = operator.upper()
    if (operator not in CONDITIONAL_OPERATORS):
        raise ValueError('The {0} must be one of {1}'.format(CONDITIONAL_OPERATOR, CONDITIONAL_OPERATORS))
    return {CONDITIONAL_OPERATOR: operator}