'Redirection URLs can be parameterized'

def test_parameter_substitution(self):

    response = RedirectView.as_view(url='/bar/%(object_id)d/')(self.rf.get('/foo/42/'), object_id=42)
    self.assertEqual(response.status_code, 301)
    self.assertEqual(response.url, '/bar/42/')
