def test_admin_section_edit(self):
        self.login_and_load()
        test_section = TestSection.objects.get(slug="41")
        admin_urls = self.get_admin_urls(test_section)
        response = self.client.get(admin_urls['change'])
        self.assertEqual(response.context['original'].slug, test_section.slug)
        response = self.client.post(admin_urls['change'], {
            'slug': '41b',
            'title': 'Forty One B',
            'description': 'Description tktk.'
        })
        # Verify edit operation redirects to index.
        self.assertRedirects(response, admin_urls['index'])
        # New data is there:
        edited_section = TestSection.objects.get(slug="41b")
        self.assertTrue(edited_section.title == 'Forty One B')
        self.assertTrue(edited_section.description == 'Description tktk.')
Edit the a section via the admin interface.
dataset/ETHPy150Open mazelife/django-scaffold/scaffold/tests.py/SectionTest.test_admin_section_edit