'Default is a permanent redirect'

def test_redirect_PATCH(self):

    response = RedirectView.as_view(url='/bar/')(self.rf.patch('/foo/'))
    self.assertEqual(response.status_code, 301)
    self.assertEqual(response.url, '/bar/')
