Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Unified Diff: tools/telemetry/third_party/gsutil/third_party/oauth2client/tests/test_tools.py

Issue 1260493004: Revert "Add gsutil 4.13 to telemetry/third_party" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/third_party/gsutil/third_party/oauth2client/tests/test_tools.py
diff --git a/tools/telemetry/third_party/gsutil/third_party/oauth2client/tests/test_tools.py b/tools/telemetry/third_party/gsutil/third_party/oauth2client/tests/test_tools.py
deleted file mode 100644
index 23aca90256b284493e907ca087784c8b47c586f8..0000000000000000000000000000000000000000
--- a/tools/telemetry/third_party/gsutil/third_party/oauth2client/tests/test_tools.py
+++ /dev/null
@@ -1,30 +0,0 @@
-"""Unit tests for oauth2client.tools."""
-
-import unittest
-from oauth2client import tools
-from six.moves.urllib import request
-import threading
-
-class TestClientRedirectServer(unittest.TestCase):
- """Test the ClientRedirectServer and ClientRedirectHandler classes."""
-
- def test_ClientRedirectServer(self):
- # create a ClientRedirectServer and run it in a thread to listen
- # for a mock GET request with the access token
- # the server should return a 200 message and store the token
- 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.setDaemon(True)
- t.start()
- f = request.urlopen( url )
- self.assertTrue(f.read())
- t.join()
- httpd.server_close()
- self.assertEqual(httpd.query_params.get('code'),code)
-
-
-if __name__ == '__main__':
- unittest.main()
-

Powered by Google App Engine
This is Rietveld 408576698