# HG changeset patch # User Andrew Shadura # Date 1433675592 -7200 # Node ID ab01e0a5d240b623da15e95998af2c5520303d6e # Parent 6e1bd83552d8e0a09c2b1c15886a0776fd58d45f tests: update password reset form test to employ only a simple @ check diff -r 6e1bd83552d8 -r ab01e0a5d240 kallithea/tests/functional/test_login.py --- a/kallithea/tests/functional/test_login.py Wed Apr 22 09:55:46 2015 +1000 +++ b/kallithea/tests/functional/test_login.py Sun Jun 07 13:13:12 2015 +0200 @@ -293,15 +293,13 @@ 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',