

def testBasicEditPost(self):
    '\n        A smoke test to ensure POST on edit_view works.\n        '
    post_data = {
        'name': 'This Week in Django',
        'generic_inline_admin-media-content_type-object_id-TOTAL_FORMS': '3',
        'generic_inline_admin-media-content_type-object_id-INITIAL_FORMS': '2',
        'generic_inline_admin-media-content_type-object_id-MAX_NUM_FORMS': '0',
        'generic_inline_admin-media-content_type-object_id-0-id': ('%d' % self.mp3_media_pk),
        'generic_inline_admin-media-content_type-object_id-0-url': 'http://example.com/podcast.mp3',
        'generic_inline_admin-media-content_type-object_id-1-id': ('%d' % self.png_media_pk),
        'generic_inline_admin-media-content_type-object_id-1-url': 'http://example.com/logo.png',
        'generic_inline_admin-media-content_type-object_id-2-id': '',
        'generic_inline_admin-media-content_type-object_id-2-url': '',
    }
    url = ('/generic_inline_admin/admin/generic_inline_admin/episode/%d/' % self.episode_pk)
    response = self.client.post(url, post_data)
    post_data.assertEqual(response.status_code, 302)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/generic_inline_admin/tests.py GenericAdminViewTest.testBasicEditPost/VarMisuse@103/386 `self`->`post_data`