summaryrefslogtreecommitdiff
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
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
-rw-r--r--heat/tests/test_auth_password.py3
-rw-r--r--heat/tests/test_auth_url.py3
-rw-r--r--py3-testlist2
3 files changed, 6 insertions, 2 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)
diff --git a/heat/tests/test_auth_url.py b/heat/tests/test_auth_url.py
index 56e61fee4..3f4f57778 100644
--- a/heat/tests/test_auth_url.py
+++ b/heat/tests/test_auth_url.py
@@ -15,6 +15,7 @@
# limitations under the License.
import mock
+import six
import webob
from webob import exc
@@ -28,7 +29,7 @@ class FakeApp(object):
def __call__(self, environ, start_response):
"""Assert that headers are correctly set up when finally called."""
resp = webob.Response()
- resp.body = 'SUCCESS'
+ resp.body = six.b('SUCCESS')
return resp(environ, start_response)
diff --git a/py3-testlist b/py3-testlist
index ae9f1f2f4..7dd5a1d89 100644
--- a/py3-testlist
+++ b/py3-testlist
@@ -75,6 +75,8 @@ heat.tests.nova.test_nova_floatingip
heat.tests.nova.test_nova_keypair
heat.tests.nova.test_nova_servergroup
heat.tests.test_attributes
+heat.tests.test_auth_password
+heat.tests.test_auth_url
heat.tests.test_cloud_config
heat.tests.test_cloudwatch
heat.tests.test_common_context