def test_validate_invalid_password(self, user):
        user.set_password('example')
        user.save()
        form = LoginForm(username=user.username, password='wrongpassword')
        assert form.validate() is False
        assert 'Invalid password' in form.password.errors
dataset/ETHPy150Open codeforamerica/comport/tests/test_user_forms.py/TestLoginForm.test_validate_invalid_password/original