summaryrefslogtreecommitdiff
path: root/heat/tests/test_auth_password.py
diff options
context:
space:
mode:
authorSirushti Murugesan <sirushti.murugesan@hp.com>2015-08-01 14:56:43 +0530
committerSirushti Murugesan <sirushti.murugesan@hp.com>2015-08-05 10:29:16 +0530
commit360464c20afb4d5422b82505164892bb8e0e6691 (patch)
tree72cbdfaf94dea5c2bb81df92b71766d076a2d1d9 /heat/tests/test_auth_password.py
parentb1e374c1268491bfe21f30c1cc652e57b7db2888 (diff)
downloadheat-360464c20afb4d5422b82505164892bb8e0e6691.tar.gz
py34: test_auth_*
convert to bytes before assigning value to resp.body partial blueprint heat-python34-support Change-Id: I6929b96cb9742df26c037deb94bef194feb06903
Diffstat (limited to 'heat/tests/test_auth_password.py')
-rw-r--r--heat/tests/test_auth_password.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/heat/tests/test_auth_password.py b/heat/tests/test_auth_password.py
index 64df4c800..31cddeb31 100644
--- a/heat/tests/test_auth_password.py
+++ b/heat/tests/test_auth_password.py
@@ -19,6 +19,7 @@ from keystoneclient import exceptions as keystone_exc
from keystoneclient import session as ks_session
import mox
from oslo_config import cfg
+import six
import webob
from heat.common import auth_password
@@ -100,7 +101,7 @@ class FakeApp(object):
for k, v in self.expected_env.items():
assert env[k] == v, '%s != %s' % (env[k], v)
resp = webob.Response()
- resp.body = 'SUCCESS'
+ resp.body = six.b('SUCCESS')
return resp(env, start_response)