'Permanent redirects are an option'

def test_temporary_redirect(self):

    response = RedirectView.as_view(url='/bar/', permanent=False)(self.rf.get('/foo/'))
    self.assertEqual(response.status_code, 302)
    self.assertEqual(response['Location'], '/bar/')
