'GET arguments can be included in the redirected URL'

def test_include_args(self):

    response = RedirectView.as_view(url='/bar/')(self.rf.get('/foo/'))
    self.assertEqual(response.status_code, 301)
    self.assertEqual(response['Location'], '/bar/')
    response = RedirectView.as_view(url='/bar/', query_string=True)(self.rf.get('/foo/?pork=spam'))
    self.assertEqual(response.status_code, 301)
    self.assertEqual(response['Location'], '/bar/?pork=spam')
