#NEWLINE# def test_password_change_succeeds( self ) : #NEWLINE# #INDENT# self . login ( ) #NEWLINE# response = self . client . post ( '/password_change/' , { #NEWLINE# #INDENT# 'old_password' : 'password' , #NEWLINE# 'new_password1' : 'password1' , #NEWLINE# 'new_password2' : 'password1' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( response . status_code , 302 ) #NEWLINE# self . assertTrue ( response [ 'Location' ] . endswith ( '/password_change/done/' ) ) #NEWLINE# self . fail_login ( ) #NEWLINE# self . login ( password = 'password1' )