def test_validate_inactive_user(self, user):
        user.active = False
        user.set_password('example')
        user.save()
        # Correct username and password, but user is not activated
        form = LoginForm(username=user.username, password='example')
        assert form.validate() is False
        assert form.username.errors in 'User not activated'
dataset/ETHPy150Open codeforamerica/comport/tests/test_user_forms.py/TestLoginForm.test_validate_inactive_user/swapped operands of `in`