def test_create_with_fields_missing(self):
    url = reverse('profiles.admin_create')
    self.login(self.superuser)
    response = self.url_post('unicef', url, dict())
    self.assertEqual(response.status_code, 200, response)
    error_dict = response.context['form'].errors
    self.assertEqual(4, len(error_dict), repr(error_dict))
    self.assertFormError(response, 'form', 'full_name', 'This field is required.')
    self.assertFormError(response, 'form', 'email', 'This field is required.')
    self.assertFormError(response, 'form', 'password', 'This field is required.')
    self.assertFormError(response, 'form', '__all__', 'Email address already taken.')
def test_create_with_fields_missing(self):
    url = reverse('profiles.admin_create')
    self.login(self.superuser)
    response = self.url_post('unicef', url, dict())
    self.assertEqual(response.status_code, 200, response)
    error_dict = response.context['form'].errors
    self.assertEqual(4, len(error_dict), repr(error_dict))
    self.assertFormError(response, 'form', 'full_name', 'This field is required.')
    self.assertFormError(response, 'form', 'email', 'This field is required.')
    self.assertFormError(response, 'form', 'password', 'This field is required.')
    self.assertFormError(response, 'form', '__all__', 'Email address already taken.')