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 form.invite_code.errors in 'Invite Code not recognized.'
dataset/ETHPy150Open codeforamerica/comport/tests/test_user_forms.py/TestRegisterForm.test_validate_invite_code_valid/swapped operands of `in`