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

Unified Diff: tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/s3/test_tagging.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/s3/test_tagging.py
diff --git a/tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/s3/test_tagging.py b/tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/s3/test_tagging.py
deleted file mode 100644
index 02b5f5300baa5f541be8372d6e3a874ee3de3eaa..0000000000000000000000000000000000000000
--- a/tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/s3/test_tagging.py
+++ /dev/null
@@ -1,47 +0,0 @@
-from tests.unit import AWSMockServiceTestCase
-
-from boto.s3.connection import S3Connection
-from boto.s3.bucket import Bucket
-from boto.s3.tagging import Tag
-
-
-class TestS3Tagging(AWSMockServiceTestCase):
- connection_class = S3Connection
-
- def default_body(self):
- return """
- <Tagging>
- <TagSet>
- <Tag>
- <Key>Project</Key>
- <Value>Project One</Value>
- </Tag>
- <Tag>
- <Key>User</Key>
- <Value>jsmith</Value>
- </Tag>
- </TagSet>
- </Tagging>
- """
-
- def test_parse_tagging_response(self):
- self.set_http_response(status_code=200)
- b = Bucket(self.service_connection, 'mybucket')
- api_response = b.get_tags()
- # The outer list is a list of tag sets.
- self.assertEqual(len(api_response), 1)
- # The inner list is a list of tags.
- self.assertEqual(len(api_response[0]), 2)
- self.assertEqual(api_response[0][0].key, 'Project')
- self.assertEqual(api_response[0][0].value, 'Project One')
- self.assertEqual(api_response[0][1].key, 'User')
- self.assertEqual(api_response[0][1].value, 'jsmith')
-
- def test_tag_equality(self):
- t1 = Tag('foo', 'bar')
- t2 = Tag('foo', 'bar')
- t3 = Tag('foo', 'baz')
- t4 = Tag('baz', 'bar')
- self.assertEqual(t1, t2)
- self.assertNotEqual(t1, t3)
- self.assertNotEqual(t1, t4)

Powered by Google App Engine
This is Rietveld 408576698