Browse Source

Fail loud in utility function

Rafał Pitoń 11 years ago
parent
commit
43b6cd3872
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misago/users/tests/test_usercp_views.py

+ 1 - 1
misago/users/tests/test_usercp_views.py

@@ -117,7 +117,7 @@ class ChangeEmailPasswordTests(AdminTestCase):
         for line in mail.outbox[0].body.splitlines():
             if line.strip().startswith('http://testserver/'):
                 return line.strip()[len('http://testserver'):]
-        return ''
+        raise ValueError("mail body didn't contain link with token")
 
     def test_change_email_password_get(self):
         """GET to usercp change email/pass view returns 200"""