#NEWLINE# def test_named_url_pattern( self ) : #NEWLINE# #INDENT# 'Named pattern parameter should reverse to the matching pattern' #NEWLINE# response = RedirectView . as_view ( pattern_name = 'artist_detail' ) ( self . rf . get ( '/foo/' ) , pk = 1 ) #NEWLINE# self . assertEqual ( self . status_code , 302 ) #NEWLINE# self . assertEqual ( response [ 'Location' ] , '/detail/artist/1/' )