# HG changeset patch # User Andrew Shadura <and...@shadura.me> # Date 1433675592 -7200 # Sun Jun 07 13:13:12 2015 +0200 # Node ID 8cedad478da7d4644634b0a33c89a0ea56eca8c2 # Parent 9b7a12fef6f4922730fb9e690e0567a6a4b32473 tests: update password reset form test to employ only a simple @ check
diff --git a/kallithea/tests/functional/test_login.py b/kallithea/tests/functional/test_login.py --- a/kallithea/tests/functional/test_login.py +++ b/kallithea/tests/functional/test_login.py @@ -293,15 +293,13 @@ class TestLoginController(TestController self.assertEqual(ret.admin, False) def test_forgot_password_wrong_mail(self): - bad_email = 'usern...@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', _______________________________________________ kallithea-general mailing list kallithea-general@sfconservancy.org http://lists.sfconservancy.org/mailman/listinfo/kallithea-general