'Ensures that ModelAdmin.response_post_save_change() controls the
redirection after the \'Save\' button has been pressed when editing an
existing object.
Refs 8001, 18310, 19505.'

def test_post_save_change_redirect(self):

    Person.objects.create(name=u'John    Doe')
    self.assertEqual(Person.objects.count(), 1)
    person = Person.objects.all()[0]
    post_data = {u'name': u'Jack    Doe'}
    response = self.client.post(reverse(u'admin:admin_custom_urls_person_change', args=[person.pk]), post_data)
    self.assertRedirects(response, reverse(u'admin:admin_custom_urls_person_delete', args=[person.pk]))
