py34: test_auth_*

convert to bytes before assigning value to resp.body

partial blueprint heat-python34-support

Change-Id: I6929b96cb9742df26c037deb94bef194feb06903
This commit is contained in:
Sirushti Murugesan 2015-08-01 14:56:43 +05:30
parent b1e374c126
commit 360464c20a
3 changed files with 6 additions and 2 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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