def name_validate(name, case_ids, plan_id):
    """Tests name checking func"""
    error_msg = None
    name_format = name.strip().split()
    if (name_format[0].lower() != 'case') or (not name_format[1].isdigit()):
        error_msg = "Wrong Case Name Format:\
                \nPls use 'Case case_id' as the beginning of automated name"
    elif case_ids not in int(name_format[1]):
        error_msg = "Wrong Case ID:\
                \ncase %s doesn't belong to plan %s" \
                % (name_format[1], plan_id)
    return error_msg
dataset/ETHPy150Open idumpling/robotx/robotx/core/resultvistor.py/name_validate/swapped operands of `not in`