'Redirections to self are caught and escaped'

def test_redirect_chain_to_self(self):

    response = self.client.get(u'/test_client_regress/redirect_to_self/', {}, follow=True)
    self.assertRedirects(response, u'/test_client_regress/redirect_to_self/', status_code=301, target_status_code=301)
    self.assertEqual(len(response.redirect_chain), 2)
