def test_post_save_add_redirect(self):
        post_data = {'name': 'John Doe'}
        self.assertEqual(Person.objects.count(), 0)
        response = self.client.post(reverse('admin_custom_urls:admin_custom_urls_person_add'), post_data)
        persons = Person.objects.all()
        self.assertEqual(len(persons), 1)
        redirect_url = reverse('admin_custom_urls:admin_custom_urls_person_history', args=[persons[0].pk])
        self.assertRedirects(response, redirect_url)
Ensures that ModelAdmin.response_post_save_add() controls the
dataset/ETHPy150Open django/django/tests/admin_custom_urls/tests.py/AdminCustomUrlsTest.test_post_save_add_redirect