'simple.redirect_to configured with query_string=True passes on any query string'

def test_redirect_to_allows_query_string_to_be_passed(self):

    response = self.client.get('/views/simple/redirect_to/?param1=foo&param2=bar')
    self.assertEqual(response.status_code, 301)
    self.assertEqual('http://testserver/views/simple/target/', response['Location'])
    response = self.client.get('/views/simple/redirect_to_query/?param1=foo&param2=bar')
    self.assertEqual(response.status_code, 301)
    self.assertEqual('http://testserver/views/simple/target/?param1=foo&param2=bar', response['Location'])
