#NEWLINE# def test_redirect_PATCH( self ) : #NEWLINE# #INDENT# 'Default is a temporary redirect' #NEWLINE# response = RedirectView . as_view ( url = '/bar/' ) ( self . rf . patch ( '/foo/' ) ) #NEWLINE# self . assertEqual ( self . status_code , 302 ) #NEWLINE# self . assertEqual ( response . url , '/bar/' )