aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-08-21 01:22:52 +0200
committerMichał Górny <mgorny@gentoo.org>2013-08-21 01:27:47 +0200
commit9e33b391e120f0684cba2768613c1199c2596e3b (patch)
treede0925e1afd1132932a4faded95a9d76e8fc5e4c /okupy/tests
parentEncode encrypted session ID using base32. (diff)
downloadidentity.gentoo.org-9e33b391e120f0684cba2768613c1199c2596e3b.tar.gz
identity.gentoo.org-9e33b391e120f0684cba2768613c1199c2596e3b.tar.bz2
identity.gentoo.org-9e33b391e120f0684cba2768613c1199c2596e3b.zip
IDCipher: use unpadded base32 as well.
Diffstat (limited to 'okupy/tests')
-rw-r--r--okupy/tests/unit/test_signup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/okupy/tests/unit/test_signup.py b/okupy/tests/unit/test_signup.py
index c32869a..795b6c2 100644
--- a/okupy/tests/unit/test_signup.py
+++ b/okupy/tests/unit/test_signup.py
@@ -137,7 +137,7 @@ class SignupUnitTests(OkupyTestCase):
self.assertEqual(vars.QUEUEDUSER.email, vars.SIGNUP_TESTUSER['email'])
self.assertEqual(vars.QUEUEDUSER.password, vars.SIGNUP_TESTUSER['password_origin'])
# note: this needs to be kept in line with used cipher
- self.assertRegexpMatches(vars.QUEUEDUSER.encrypted_id, '^[a-f0-9]{16}$')
+ self.assertRegexpMatches(vars.QUEUEDUSER.encrypted_id, '^[a-z2-7]{13}$')
@no_database()
def test_no_database_connection_raises_error_in_signup(self):