Ticket #17417: 17417__failing_test_case.patch

File 17417__failing_test_case.patch, 920 bytes (added by gregmuellegger, 3 years ago)

Failing testcase.

  • tests/regressiontests/admin_views/tests.py

    diff --git a/tests/regressiontests/admin_views/tests.py b/tests/regressiontests/admin_views/tests.py
    index f074d77..bcd10c8 100644
    a b class SaveAsTests(TestCase): 
    715715        """
    716716        response = self.client.get('/test_admin/admin/admin_views/person/1/')
    717717        self.assertTrue(response.context['save_as'])
     718        self.assertTrue('_saveasnew' in response.content)
    718719        post_data = {'_saveasnew':'', 'name':'John M', 'gender':3, 'alive':'checked'}
    719720        response = self.client.post('/test_admin/admin/admin_views/person/1/', post_data)
    720721        self.assertEqual(response.context['form_url'], '/test_admin/admin/admin_views/person/add/')
     722        self.assertTrue('_saveasnew' in response.content)
    721723
    722724class CustomModelAdminTest(AdminViewBasicTest):
    723725    urls = "regressiontests.admin_views.urls"
Back to Top