#NEWLINE# def test_include_args( self ) : #NEWLINE# #INDENT# 'GET arguments can be included in the redirected URL' #NEWLINE# response = RedirectView . as_view ( url = '/bar/' ) ( self . rf . get ( '/foo/' ) ) #NEWLINE# self . assertEqual ( response . status_code , 301 ) #NEWLINE# self . assertEqual ( response [ 'Location' ] , '/bar/' ) #NEWLINE# response = RedirectView . as_view ( url = '/bar/' , query_string = True ) ( self . rf . get ( '/foo/?pork=spam' ) ) #NEWLINE# self . assertEqual ( response . status_code , 301 ) #NEWLINE# self . assertEqual ( response [ 'Location' ] , '/bar/?pork=spam' )