#NEWLINE# def test_confirm_done( self ) : #NEWLINE# #INDENT# "\n        Password reset complete page should be rendered with 'login_url'\n        in its context.\n        " #NEWLINE# ( url , path ) = self . _test_confirm_start ( ) #NEWLINE# response = self . client . post ( path , { #NEWLINE# #INDENT# 'new_password1' : 'anewpassword' , #NEWLINE# 'new_password2' : 'anewpassword' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( response . status_code , 302 ) #NEWLINE# response = self . client . get ( response [ 'Location' ] ) #NEWLINE# self . assertIn ( 'login_url' , response . context )