'Ensures that ModelAdmin.response_post_save_add() controls the
redirection after the \'Save\' button has been pressed when adding a
new object.
Refs 8001, 18310, 19505.'

def test_post_save_add_redirect(self):

    post_data = {u'name': u'John    Doe'}
    self.assertEqual(Person.objects.count(), 0)
    response = self.client.post(reverse(u'admin:admin_custom_urls_person_add'), post_data)
    persons = Person.objects.all()
    self.assertEqual(len(persons), 1)
    self.assertRedirects(response, reverse(u'admin:admin_custom_urls_person_history', args=[persons[0].pk]))
