Fix test mistake with requests-mock

body= parameters are supposed to be io objects. This is obviously during
the conversion from HTTPretty.

Change-Id: Ia8ec9294e054e2231aa4a5e2633e2b7d5d15066a
Closes-Bug: #1363632
This commit is contained in:
Jamie Lennox
2014-08-31 20:48:46 +10:00
parent 46695565d3
commit 1643f7da32
2 changed files with 2 additions and 2 deletions

View File

@@ -191,7 +191,7 @@ class CommonIdentityTests(object):
body = 'SUCCESS'
self.stub_url('GET', ['path'],
base_url=self.TEST_COMPUTE_ADMIN, body=body)
base_url=self.TEST_COMPUTE_ADMIN, text=body)
a = self.create_auth_plugin(**kwargs)
a.auth_ref = expired_auth_ref

View File

@@ -101,7 +101,7 @@ class AuthenticateAgainstKeystoneTests(utils.TestCase):
self.assertRequestBodyIs(json=self.TEST_REQUEST_BODY)
def test_auth_redirect(self):
self.stub_auth(status_code=305, body='Use Proxy',
self.stub_auth(status_code=305, text='Use Proxy',
headers={'Location': self.TEST_ADMIN_URL + "/tokens"})
self.stub_auth(base_url=self.TEST_ADMIN_URL,