diff options
| author | Michael Merickel <michael@merickel.org> | 2016-01-27 22:20:19 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2016-01-27 22:20:19 -0600 |
| commit | 183804c747ec465383fac7f57c5b3f61a81fde51 (patch) | |
| tree | aece3a5c0e77aef38bc51e4097ae399d0b43461d | |
| parent | 9270e08bf8839e2bf8afa11033834a0f3b68d3dd (diff) | |
| download | pyramid-183804c747ec465383fac7f57c5b3f61a81fde51.tar.gz pyramid-183804c747ec465383fac7f57c5b3f61a81fde51.tar.bz2 pyramid-183804c747ec465383fac7f57c5b3f61a81fde51.zip | |
set DummySession to use unicode csrf token by default like SignedCookieSessionFactory
| -rw-r--r-- | pyramid/testing.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyramid/testing.py b/pyramid/testing.py index 58dcb0b59..14432b01f 100644 --- a/pyramid/testing.py +++ b/pyramid/testing.py @@ -16,6 +16,7 @@ from pyramid.compat import ( PY3, PYPY, class_types, + text_, ) from pyramid.config import Configurator @@ -274,7 +275,7 @@ class DummySession(dict): return storage def new_csrf_token(self): - token = '0123456789012345678901234567890123456789' + token = text_('0123456789012345678901234567890123456789') self['_csrft_'] = token return token |
