Mercurial > p > roundup > code
diff test/test_cgi.py @ 4485:95aace124a8e
use idea from Eli Collins to use a list of deprecated password encoding schemes
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Thu, 14 Apr 2011 18:27:51 +0000 |
| parents | 52e13bf0bb40 |
| children | 693c75d56ebe |
line wrap: on
line diff
--- a/test/test_cgi.py Thu Apr 14 18:10:58 2011 +0000 +++ b/test/test_cgi.py Thu Apr 14 18:27:51 2011 +0000 @@ -431,7 +431,7 @@ cl = self._make_client(form) # assume that the "best" algorithm is the first one and doesn't # need migration, all others should be migrated. - for scheme in password.Password.known_schemes[1:]: + for scheme in password.Password.deprecated_schemes: pw1 = password.Password('foo', scheme=scheme) self.assertEqual(pw1.needs_migration(), True) self.db.user.set(chef, password=pw1)
