Esempio n. 1
0
 def test_change_form_email_field_is_required(self):
     user_model_admin = UserAdmin(User, self.site)
     form = user_model_admin.form()
     field = form.declared_fields['email']
     self.assertTrue(field.required)
Esempio n. 2
0
 def test_change_form_email_field_is_required(self):
     user_model_admin = UserAdmin(User, self.site)
     form = user_model_admin.form()
     field = form.declared_fields['email']
     self.assertTrue(field.required)
Esempio n. 3
0
 def test_user_model_admin_custom_change_form(self):
     user_model_admin = UserAdmin(User, self.site)
     form = user_model_admin.form()
     self.assertEqual(type(form), UserChangeForm)
Esempio n. 4
0
 def test_user_model_admin_custom_change_form(self):
     user_model_admin = UserAdmin(User, self.site)
     form = user_model_admin.form()
     self.assertEqual(type(form), UserChangeForm)