#NEWLINE# def test_02_registration_confirmation( self ) : #NEWLINE# #INDENT# url = reverse ( 'pwd_reset' ) #NEWLINE# retrieve_url = 'http://127.0.0.1:8000/user/password/reset/NA-3rd-a49dd5e53146caf72ddb/' #NEWLINE# post_data = { #NEWLINE# #INDENT# 'email' : self . registration_user . email , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . client . post ( url , post_data ) #NEWLINE# exp_url = reverse ( 'django.contrib.auth.views.password_reset_done' ) #NEWLINE# self . assertRedirects ( response , retrieve_url ) #NEWLINE# response = self . client . get ( exp_url ) #NEWLINE# self . assertContains ( response , 'Instructions Emailed' ) #NEWLINE# response = self . client . get ( retrieve_url ) #NEWLINE# self . assertContains ( response , 'Password reset unsuccessful' )