diff --git a/ceilometer/tests/api/v2/test_acl_scenarios.py b/ceilometer/tests/api/v2/test_acl_scenarios.py index 05fa9e681..e50bc4813 100644 --- a/ceilometer/tests/api/v2/test_acl_scenarios.py +++ b/ceilometer/tests/api/v2/test_acl_scenarios.py @@ -34,8 +34,8 @@ VALID_TOKEN2 = '4562138218392832' class FakeMemcache(object): - TOKEN_HASH = hashlib.sha256(VALID_TOKEN).hexdigest() - TOKEN2_HASH = hashlib.sha256(VALID_TOKEN2).hexdigest() + TOKEN_HASH = hashlib.sha256(VALID_TOKEN.encode('utf-8')).hexdigest() + TOKEN2_HASH = hashlib.sha256(VALID_TOKEN2.encode('utf-8')).hexdigest() def get(self, key): if (key == "tokens/%s" % VALID_TOKEN or