

def testBasicAddPost(self):
    '\n        A smoke test to ensure POST on add_view works.\n        '
    post_data = {
        'name': 'This Week in Django',
        'generic_inline_admin-media-content_type-object_id-TOTAL_FORMS': '1',
        'generic_inline_admin-media-content_type-object_id-INITIAL_FORMS': '0',
        'generic_inline_admin-media-content_type-object_id-MAX_NUM_FORMS': '0',
    }
    response = self.client.post('/generic_inline_admin/admin/generic_inline_admin/episode/add/', post_data)
    self.assertEqual(response.status_code, 302)

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