def test_custom_modelforms_with_fields_fieldsets(self):
        validate(ValidFields, Song)
        self.assertRaisesMessage(ImproperlyConfigured,
            "'InvalidFields.fields' refers to field 'spam' that is missing from the form.",
            validate,
            InvalidFields, Song)
# Regression test for #8027: custom ModelForms with fields/fieldsets
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/admin_validation/tests.py/ValidationTestCase.test_custom_modelforms_with_fields_fieldsets