diff options
author | INADA Naoki <inada-n@klab.com> | 2014-08-20 12:48:30 +0900 |
---|---|---|
committer | INADA Naoki <inada-n@klab.com> | 2014-08-20 12:48:30 +0900 |
commit | c045addca917652fcd1ed3ed5a2ab9c567a6491c (patch) | |
tree | 4f8b48be93ffcefd1c574353a4586adc87e03974 /tests/test_jwt.py | |
parent | d09be0966bc650d40331ae208965f05cb4852277 (diff) | |
download | oauth2client-c045addca917652fcd1ed3ed5a2ab9c567a6491c.tar.gz |
Fix http_mock
Diffstat (limited to 'tests/test_jwt.py')
-rw-r--r-- | tests/test_jwt.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_jwt.py b/tests/test_jwt.py index e42876c..6caf031 100644 --- a/tests/test_jwt.py +++ b/tests/test_jwt.py @@ -213,10 +213,10 @@ class SignedJwtAssertionCredentialsTests(unittest.TestCase): sub='joe@example.org') http = HttpMockSequence([ ({'status': '200'}, b'{"access_token":"1/3w","expires_in":3600}'), - ({'status': '200'}, b'echo_request_headers'), + ({'status': '200'}, 'echo_request_headers'), ]) http = credentials.authorize(http) - _, content = http.request('http://example.org') + resp, content = http.request('http://example.org') self.assertEqual('Bearer 1/3w', content['Authorization']) def test_credentials_to_from_json(self): @@ -238,7 +238,7 @@ class SignedJwtAssertionCredentialsTests(unittest.TestCase): ({'status': '200'}, b'{"access_token":"1/3w","expires_in":3600}'), ({'status': '401'}, b''), ({'status': '200'}, b'{"access_token":"3/3w","expires_in":3600}'), - ({'status': '200'}, b'echo_request_headers'), + ({'status': '200'}, 'echo_request_headers'), ]) http = credentials.authorize(http) _, content = http.request('http://example.org') |