#NEWLINE# def test_confirm_login_url_resolves( self ) : #NEWLINE# #INDENT# complete_view = PasswordResetCompleteView . as_view ( login_url = 'login_required' ) #NEWLINE# request_factory = RequestFactory ( ) #NEWLINE# response = complete_view ( request_factory . get ( '/xxx/' ) ) #NEWLINE# self . assertEqual ( response . context_data [ 'login_url' ] , reverse ( 'login_required' ) ) #NEWLINE# complete_view2 = PasswordResetCompleteView . as_view ( login_url = '/dont-change-me/' ) #NEWLINE# response = complete_view2 ( request_factory . get ( '/xxx/' ) ) #NEWLINE# self . assertEqual ( response . context_data [ 'login_url' ] , '/dont-change-me/' )