django_openstack_auth/openstack_auth/tests
Brad Pokorny 67ce03e739 Fix token hashing with python 3
With python 3, hasher.update() must be called with byte encoding.
Hashing without encoding first in python 3 results in this error:

  TypeError: Unicode-objects must be encoded before hashing

Using byte encoding also works with python 2.7, so convert tokens
to bytes before hashing regardless of python version.

Change-Id: I837566c669565ed8c11dacbefc273dae3ff580bb
Closes-Bug: #1552443
2016-03-02 00:17:20 -08:00
..
conf Makes policy.check aware of domain scoped token 2015-11-23 22:18:48 +00:00
templates/auth Initial commit. 2012-07-03 02:25:01 -07:00
__init__.py Initial commit. 2012-07-03 02:25:01 -07:00
data_v2.py Move d-o-a auth library to keystoneauth 2015-12-09 13:46:45 +00:00
data_v3.py Don't call the Keystone client if the token is None 2016-03-02 00:07:21 -08:00
models.py Initial commit. 2012-07-03 02:25:01 -07:00
run_tests.py Fix the py27dj19 tests 2016-01-15 13:12:24 +00:00
settings.py Add message show for switch project 2015-07-15 12:20:50 -06:00
tests.py Fix token hashing with python 3 2016-03-02 00:17:20 -08:00
urls.py Update URLs to Django 1.8+ style 2016-02-16 19:41:52 +00:00