Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
Fixing line length. To be squashed.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes committed Aug 3, 2016
1 parent 1a70341 commit ed42b28
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,14 +908,14 @@ def test_token_refresh_success(self):
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)
Expand Down

0 comments on commit ed42b28

Please sign in to comment.