#NEWLINE# def test_reset_password_fail( self ) : #NEWLINE# #INDENT# request = testing . DummyRequest ( environ = environ ) #NEWLINE# request . context = testing . DummyResource ( ) #NEWLINE# request . method = 'POST' #NEWLINE# request . POST = webob . multidict . MultiDict ( ) #NEWLINE# response = apex . views . reset_password ( request ) #NEWLINE# self . assertEqual ( len ( response [ 'form' ] . errors ) , 2 )