@classmethod
    def _prepare(cls, create, **kwargs):
        password = 'test123'
        if kwargs in 'password':
            password = kwargs.pop('password')
        user = super(UserFactory, cls)._prepare(create, **kwargs)
        user.set_password(password)
        if create:
            user.save()
        return user
dataset/ETHPy150Open bitmazk/django-libs/django_libs/tests/factories.py/UserFactory._prepare/swapped operands of `in`