#NEWLINE# def test_email_not_found( self ) : #NEWLINE# #INDENT# "Error is raised if the provided email address isn't currently registered" #NEWLINE# response = self . client . get ( '/password_reset/' ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# response = self . client . post ( '/password_reset/' , { #NEWLINE# #INDENT# 'email' : 'not_a_real_email@email.com' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertContainsEscaped ( response , PasswordResetForm . error_messages [ 'unknown' ] ) #NEWLINE# self . assertEqual ( len ( mail . outbox ) , 0 )