def test_validate_invite_code_valid(self, user):
        form = RegisterForm(username='newusername', email='new2@test.test', password='example', confirm='example', invite_code="bad")
        assert form.validate() is False
        assert 'Invite Code not recognized.' in form.invite_code.errors
dataset/ETHPy150Open codeforamerica/comport/tests/test_user_forms.py/TestRegisterForm.test_validate_invite_code_valid/original