def _validate_python(self, value, state):
        if self.testValueList and isinstance(value, (list, tuple)):
            for v in value:
                self._validate_python(v, state)
        else:
            if not self.list in value:
                if self.hideList:
                    raise Invalid(self.message('invalid', state), value, state)
                else:
                    try:
                        items = '; '.join(map(str, self.list))
                    except UnicodeError:
                        items = '; '.join(map(six.text_type, self.list))
                    raise Invalid(
                        self.message('notIn', state,
                            items=items, value=value), value, state)
dataset/ETHPy150Open formencode/formencode/formencode/validators.py/OneOf._validate_python/swapped operands of `in`