#NEWLINE# def test_parameter_substitution( self ) : #NEWLINE# #INDENT# 'Redirection URLs can be parameterized' #NEWLINE# response = RedirectView . as_view ( url = '/bar/%(object_id)d/' ) ( self . rf . get ( '/foo/42/' ) , object_id = 42 ) #NEWLINE# self . assertEqual ( self . status_code , 301 ) #NEWLINE# self . assertEqual ( response [ 'Location' ] , '/bar/42/' )