

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': '2',
        'generic_inline_admin-media-content_type-object_id-INITIAL_FORMS': '1',
        'generic_inline_admin-media-content_type-object_id-0-id': '1',
        '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': '',
        'generic_inline_admin-media-content_type-object_id-1-url': '',
    }
    response = self.client.post('/generic_inline_admin/admin/generic_inline_admin/episode/1/', post_data)
    self.failUnlessEqual(response.status_code, 302)

dataset/ETHPy150Open dcramer/django-compositepks/tests/regressiontests/generic_inline_admin/tests.py GenericAdminViewTest.testBasicEditPost/original