aboutsummaryrefslogtreecommitdiff
path: root/tests/test_tools.py
diff options
context:
space:
mode:
authorDanny Hermes <daniel.j.hermes@gmail.com>2015-08-19 22:03:50 -0700
committerDanny Hermes <daniel.j.hermes@gmail.com>2015-08-21 08:04:14 -0700
commit34c1ff543dd16edf58dcf5b336076cf27de3721a (patch)
treec4bfda94143239939a56cec584a5c707b87bcced /tests/test_tools.py
parent043e066e54d00bd3f8c5a90d2cb83292f30f8ede (diff)
downloadoauth2client-34c1ff543dd16edf58dcf5b336076cf27de3721a.tar.gz
Raw pep8ify changes.
Simply ran pep8ify -w oauth2client/ pep8ify -w tests/
Diffstat (limited to 'tests/test_tools.py')
-rw-r--r--tests/test_tools.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_tools.py b/tests/test_tools.py
index 23aca90..6b32e39 100644
--- a/tests/test_tools.py
+++ b/tests/test_tools.py
@@ -5,6 +5,7 @@ from oauth2client import tools
from six.moves.urllib import request
import threading
+
class TestClientRedirectServer(unittest.TestCase):
"""Test the ClientRedirectServer and ClientRedirectHandler classes."""
@@ -15,16 +16,15 @@ class TestClientRedirectServer(unittest.TestCase):
httpd = tools.ClientRedirectServer(('localhost', 0), tools.ClientRedirectHandler)
code = 'foo'
url = 'http://localhost:%i?code=%s' % (httpd.server_address[1], code)
- t = threading.Thread(target = httpd.handle_request)
+ t = threading.Thread(target=httpd.handle_request)
t.setDaemon(True)
t.start()
- f = request.urlopen( url )
+ f = request.urlopen(url)
self.assertTrue(f.read())
t.join()
httpd.server_close()
- self.assertEqual(httpd.query_params.get('code'),code)
+ self.assertEqual(httpd.query_params.get('code'), code)
if __name__ == '__main__':
unittest.main()
-