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

Unified Diff: tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/sts/test_credentials.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/boto/tests/unit/sts/test_credentials.py
diff --git a/tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/sts/test_credentials.py b/tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/sts/test_credentials.py
deleted file mode 100644
index 27a16ca72a81b02960376ccf700d76b128e67668..0000000000000000000000000000000000000000
--- a/tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/sts/test_credentials.py
+++ /dev/null
@@ -1,38 +0,0 @@
-import unittest
-
-from boto.sts.credentials import Credentials
-
-
-class STSCredentialsTest(unittest.TestCase):
- sts = True
-
- def setUp(self):
- super(STSCredentialsTest, self).setUp()
- self.creds = Credentials()
-
- def test_to_dict(self):
- # This would fail miserably if ``Credentials.request_id`` hadn't been
- # explicitly set (no default).
- # Default.
- self.assertEqual(self.creds.to_dict(), {
- 'access_key': None,
- 'expiration': None,
- 'request_id': None,
- 'secret_key': None,
- 'session_token': None
- })
-
- # Override.
- creds = Credentials()
- creds.access_key = 'something'
- creds.secret_key = 'crypto'
- creds.session_token = 'this'
- creds.expiration = 'way'
- creds.request_id = 'comes'
- self.assertEqual(creds.to_dict(), {
- 'access_key': 'something',
- 'expiration': 'way',
- 'request_id': 'comes',
- 'secret_key': 'crypto',
- 'session_token': 'this'
- })

Powered by Google App Engine
This is Rietveld 408576698