aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_fernet.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-11-22 10:15:14 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2013-11-22 10:15:14 -0800
commit56bcade581e68ad0dd82dbabe97c75a9f0701fed (patch)
treecb8f7d62d360122bef3928dc517ba54a2e9f94d0 /tests/test_fernet.py
parent1d2901cae193cb965480835aaf96696f8eecfaab (diff)
downloadcryptography-56bcade581e68ad0dd82dbabe97c75a9f0701fed.tar.gz
cryptography-56bcade581e68ad0dd82dbabe97c75a9f0701fed.tar.bz2
cryptography-56bcade581e68ad0dd82dbabe97c75a9f0701fed.zip
fix, technically
Diffstat (limited to 'tests/test_fernet.py')
-rw-r--r--tests/test_fernet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_fernet.py b/tests/test_fernet.py
index c1caaa05..8759229a 100644
--- a/tests/test_fernet.py
+++ b/tests/test_fernet.py
@@ -68,7 +68,7 @@ class TestFernet(object):
f.decrypt(token.encode("ascii"), ttl=ttl_sec)
def test_unicode(self):
- f = Fernet(base64.b64encode(b"\x00" * 32))
+ f = Fernet(base64.urlsafe_b64encode(b"\x00" * 32))
with pytest.raises(TypeError):
f.encrypt(six.u(""))
with pytest.raises(TypeError):