#NEWLINE# def test_logout_with_overridden_redirect_url( self ) : #NEWLINE# #INDENT# self . login ( ) #NEWLINE# response = self . client . get ( '/logout/next_page/' ) #NEWLINE# self . assertEqual ( response . status_code , 302 ) #NEWLINE# self . assertTrue ( response [ 'Location' ] . endswith ( '/somewhere/' ) ) #NEWLINE# response = self . client . get ( '/logout/next_page/?next=/login/' ) #NEWLINE# self . assertEqual ( response . status_code , 302 ) #NEWLINE# self . assertTrue ( response [ 'Location' ] . endswith ( '/login/' ) ) #NEWLINE# self . confirm_logged_out ( )