def test_clean_invite_code_invalid(self):
        form = forms.InviteEntryForm({'invite_code': 'totally invalid'})
        self.assertFalse(form.is_valid())
Test that clean_invite_code raises an ValidationError if invalid.
dataset/ETHPy150Open ofa/connect/open_connect/accounts/tests/test_forms.py/InviteEntryFormTest.test_clean_invite_code_invalid