def test_form_save_commit(self): form = DevDayUserCreationForm( data={ "email": "*****@*****.**", "password1": "s3cr3t", "password2": "s3cr3t", }) user = form.save(commit=True) self.assertIsNotNone(user.id) self.assertTrue(user.check_password("s3cr3t"))
def test_get_user_form(self): form = DevDayUserCreationForm() self.assertIsNotNone(form)