def tag_validate(tags, case_ids, plan_id):
    """Tests tag checking func"""
    error_msg = None
    tag_id = re.findall('ID_\d+|id_\d+', str(tags))
    if not tag_id:
        error_msg = "Wrong Tag Format:\
                \nPls add tag 'ID_case_id' to this case."
    elif case_ids not in int(tag_id[0][3:]):
        error_msg = "Wrong Tag Format:\
                \ncase %s don't belong to plan %s" % (tag_id[0][3:], plan_id)
    return error_msg
dataset/ETHPy150Open idumpling/robotx/robotx/core/resultvistor.py/tag_validate/swapped operands of `not in`