'An assertion is raised if the redirect location doesn\'t preserve GET parameters'

def test_lost_query(self):

    response = self.client.get('/test_client/redirect_view/', {'var': 'value'})
    try:
        self.assertRedirects(response, '/test_client/get_view/')
    except AssertionError as e:
        self.assertEquals(str(e), "Response    redirected    to    'http://testserver/test_client/get_view/?var=value',    expected    'http://testserver/test_client/get_view/'")
    try:
        self.assertRedirects(response, '/test_client/get_view/', msg_prefix='abc')
    except AssertionError as e:
        self.assertEquals(str(e), "abc:    Response    redirected    to    'http://testserver/test_client/get_view/?var=value',    expected    'http://testserver/test_client/get_view/'")
