Fixing lint errors. Fixes Issue 244.
Reviewed in https://codereview.appspot.com/7516043/
diff --git a/tests/test_errors.py b/tests/test_errors.py
index 57e82e7..bd6c6d5 100644
--- a/tests/test_errors.py
+++ b/tests/test_errors.py
@@ -94,6 +94,6 @@
def test_missing_reason(self):
"""Test an empty dict with a missing resp.reason."""
- resp, content = fake_response('}NOT OK', {'status':'400'}, reason=None)
+ resp, content = fake_response('}NOT OK', {'status': '400'}, reason=None)
error = HttpError(resp, content)
self.assertEqual(str(error), '<HttpError 400 "">')
diff --git a/tests/test_oauth2client.py b/tests/test_oauth2client.py
index f824f60..a075e1f 100644
--- a/tests/test_oauth2client.py
+++ b/tests/test_oauth2client.py
@@ -144,10 +144,10 @@
for status_code in REFRESH_STATUS_CODES:
token_response = {'access_token': '1/3w', 'expires_in': 3600}
http = HttpMockSequence([
- ({'status': status_code}, ''),
- ({'status': '200'}, simplejson.dumps(token_response)),
- ({'status': '200'}, 'echo_request_headers'),
- ])
+ ({'status': status_code}, ''),
+ ({'status': '200'}, simplejson.dumps(token_response)),
+ ({'status': '200'}, 'echo_request_headers'),
+ ])
http = self.credentials.authorize(http)
resp, content = http.request('http://example.com')
self.assertEqual('Bearer 1/3w', content['Authorization'])
diff --git a/tests/test_oauth2client_appengine.py b/tests/test_oauth2client_appengine.py
index 20e8f09..e613f2b 100644
--- a/tests/test_oauth2client_appengine.py
+++ b/tests/test_oauth2client_appengine.py
@@ -510,9 +510,9 @@
self.assertEqual('http://localhost/foo_path', parts[0])
self.assertEqual(None, self.decorator.credentials)
if self.decorator._token_response_param:
- response = parse_qs(parts[1])[self.decorator._token_response_param][0]
- self.assertEqual(Http2Mock.content,
- simplejson.loads(urllib.unquote(response)))
+ response = parse_qs(parts[1])[self.decorator._token_response_param][0]
+ self.assertEqual(Http2Mock.content,
+ simplejson.loads(urllib.unquote(response)))
m.UnsetStubs()
m.VerifyAll()