

def testExcludeParam(self):
    '\n        Generic inline formsets should respect include.\n        '
    e = self._create_object(EpisodeExclude)
    response = self.client.get(('/generic_inline_admin/admin/generic_inline_admin/episodeexclude/%s/' % e.pk))
    formset = response.context['inline_admin_formsets'][0].formset
    self.assertFalse(('url' in formset.forms[0]), 'The formset has excluded "url" field.')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/generic_inline_admin/tests.py GenericInlineAdminParametersTest.testExcludeParam/original