'GET a URL that redirects permanently elsewhere'

def test_permanent_redirect(self):

    response = self.client.get('/test_client/permanent_redirect_view/')
    self.assertRedirects(response, 'http://testserver/test_client/get_view/', status_code=301)
    client_providing_host = Client(HTTP_HOST='django.testserver')
    response = client_providing_host.get('/test_client/permanent_redirect_view/')
    self.assertRedirects(response, 'http://django.testserver/test_client/get_view/', status_code=301)
