def fails(self):
        validate_data = getattr(self, 'validate_data')
        for k in validate_data:
            rules = validate_data.get(k, None)
            if not rules:
                raise InvalidValidateDataError()
            else:
                rules_list = rules.split('|')
                for rule in rules_list:
                    rule_origin = rule
                    rule = rule.split(':')[0]
                    if rule is None or rule == '':
                        raise InvalidRuleNameError(rule=rule)

                    rule_validator = import_module('.rules', package='django_laravel_validator')

                    try:
                        regex = getattr(rule_validator, rule.upper())
                    except AttributeError:
                        raise InvalidRuleNameError(rule=rule)

                    if WITH_PARAMETERS_VALIDATOR in rule.upper():
                        rule_args = format_args_split(rule_origin)
                        regex = regex(rule_args)
                    else:
                        regex = regex()
                    try:
                        setattr(regex, 'validator_instance', self)
                        regex(self.data.get(k, None))
                    except ValidationError as e:
                        error_message = error_message_generate(k, rule, self.message, e)
                        error_dict = self.error_list.get(k)
                        error_dict.update({rule: error_message})
                        self.error_list.get(k).update(error_dict)
                        self.validate_flag = False

        check = getattr(self, 'check', None)
        if check and callable(check) and self.validate_flag:
            check()

        return check_errors(self.error_list, self.error_list_ext)
dataset/ETHPy150Open youngershen/django-laravel-validator/django_laravel_validator/validator.py/Validator.fails/swapped operands of `in`