#NEWLINE# def get_login_required_url( self , login_url ) : #NEWLINE# #INDENT# settings . LOGIN_URL = login_url #NEWLINE# response = self . client . get ( '/login_required/' ) #NEWLINE# self . assertEqual ( self . status_code , 302 ) #NEWLINE# return response [ 'Location' ]