Example #1
0
 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"))
Example #2
0
 def test_get_user_form(self):
     form = DevDayUserCreationForm()
     self.assertIsNotNone(form)