Show
Ignore:
Timestamp:
09/10/08 09:09:13 (18 months ago)
Author:
JensDiemer
Message:

test_pass_reset_form without sending a email address.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid_project/tests/sha1_js_login.py

    r1634 r1756  
    571571        """ 
    572572        response = self.client.post(self.pass_reset_url, 
    573             {"username": "wrong_user"} 
     573            { 
     574                "username": "wrong_user", 
     575                "email": "wrong@email-adress.org" 
     576            } 
    574577        ) 
    575578        self.assertResponse(response, must_contain=("User does not exist.",)) 
     
    590593        ) 
    591594 
     595    def test_pass_reset_form_errors4(self): 
     596        """ 
     597        form validating test: Check with not existing user. 
     598        """ 
     599        response = self.client.post(self.pass_reset_url, 
     600            {"username": "no_email_send"} 
     601        ) 
     602        self.assertResponse(response, 
     603            must_contain=( 
     604                "Form data is not valid. Please correct.", 
     605                "This field is required.", 
     606            ) 
     607        ) 
    592608 
    593609    def test_pass_reset(self):