Changeset - ab01e0a5d240
[Not reviewed]
default
0 1 0
Andrew Shadura - 10 years ago 2015-06-07 13:13:12
andrew@shadura.me
tests: update password reset form test to employ only a simple @ check
1 file changed with 2 insertions and 4 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/functional/test_login.py
Show inline comments
 
@@ -293,15 +293,13 @@ class TestLoginController(TestController
 
        self.assertEqual(ret.admin, False)
 

	
 
    def test_forgot_password_wrong_mail(self):
 
        bad_email = 'username@wrongmail.org'
 
        bad_email = 'username%wrongmail.org'
 
        response = self.app.post(
 
                        url(controller='login', action='password_reset'),
 
                            {'email': bad_email, }
 
        )
 

	
 
        msg = validators.ValidSystemEmail()._messages['non_existing_email']
 
        msg = h.html_escape(msg % {'email': bad_email})
 
        response.mustcontain()
 
        response.mustcontain('An email address must contain a single @')
 

	
 
    def test_forgot_password(self):
 
        response = self.app.get(url(controller='login',
0 comments (0 inline, 0 general)