update to make test run red

This commit is contained in:
Jameson
2014-01-23 23:33:11 +00:00
parent f47fce9365
commit b4d1a7c921
2 changed files with 6 additions and 5 deletions
+4 -4
View File
@@ -315,10 +315,10 @@ def get_token_status(token, serializer, max_age=None):
expired = True
except BadSignature:
invalid = True
except TypeError:
invalid = True
except ValueError:
invalid = True
# except TypeError:
# invalid = True
# except ValueError:
# invalid = True
if data:
user = _datastore.find_user(id=data[0])
+2 -1
View File
@@ -432,7 +432,8 @@ class RecoverableTests(SecurityTest):
'password_confirm': 'newpassword'
}, follow_redirects=True)
self.assertIn(self.get_message('INVALID_RESET_PASSWORD_TOKEN'), r.data)
m = self.get_message('INVALID_RESET_PASSWORD_TOKEN')
self.assertIn(m.encode('utf-8'), r.data)
class ExpiredResetPasswordTest(SecurityTest):