def test_form_validation_fails_for_existing_user(self): user = G(User, email='*****@*****.**') invite_form = InviteForm({'invitee': '*****@*****.**'}) self.assertFalse(invite_form.is_valid())
def test_form_validation(self): invite_form = InviteForm(self.data) self.assertTrue(invite_form.is_valid())