| Index: tools/telemetry/third_party/gsutilz/third_party/boto/tests/unit/s3/test_tagging.py
|
| diff --git a/tools/telemetry/third_party/gsutilz/third_party/boto/tests/unit/s3/test_tagging.py b/tools/telemetry/third_party/gsutilz/third_party/boto/tests/unit/s3/test_tagging.py
|
| deleted file mode 100644
|
| index 02b5f5300baa5f541be8372d6e3a874ee3de3eaa..0000000000000000000000000000000000000000
|
| --- a/tools/telemetry/third_party/gsutilz/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)
|
|
|