diff options
author | Danny Hermes <daniel.j.hermes@gmail.com> | 2016-08-02 18:35:05 -0700 |
---|---|---|
committer | Danny Hermes <daniel.j.hermes@gmail.com> | 2016-08-02 18:35:05 -0700 |
commit | ed42b28cbd82bdd0878ca206bbfeb965cd9e3433 (patch) | |
tree | cdc680a1654afd10eaea62753d99d77a20514f5f /tests | |
parent | 1a70341761c8201b8da8be30367e1456cbc78f2c (diff) | |
download | oauth2client-ed42b28cbd82bdd0878ca206bbfeb965cd9e3433.tar.gz |
Fixing line length. To be squashed.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_client.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_client.py b/tests/test_client.py index be5994f..c461796 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -908,14 +908,14 @@ class BasicCredentialsTests(unittest2.TestCase): self.assertEqual(token_response, self.credentials.token_response) def test_recursive_authorize(self): - # Tests that OAuth2Credentials doesn't introduce new method constraints. - # Formerly, OAuth2Credentials.authorize monkeypatched the request method - # of the passed in HTTP object with a wrapper annotated with - # @util.positional(1). Since the original method has no such annotation, - # that meant that the wrapper was violating the contract of the original - # method by adding a new requirement to it. And in fact the wrapper - # itself doesn't even respect that requirement. So before the removal of - # the annotation, this test would fail. + # Tests that OAuth2Credentials doesn't introduce new method + # constraints. Formerly, OAuth2Credentials.authorize monkeypatched the + # request method of the passed in HTTP object with a wrapper annotated + # with @util.positional(1). Since the original method has no such + # annotation, that meant that the wrapper was violating the contract of + # the original method by adding a new requirement to it. And in fact + # the wrapper itself doesn't even respect that requirement. So before + # the removal of the annotation, this test would fail. token_response = {'access_token': '1/3w', 'expires_in': 3600} encoded_response = json.dumps(token_response).encode('utf-8') http = http_mock.HttpMock(data=encoded_response) |