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

def test_lost_query(self):

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