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/cloudfront/test_distribution.py

Issue 1258583006: Add gsutil 4.13 to telemetry/third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo all other changes so this just add gsutil to third_party 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/cloudfront/test_distribution.py
diff --git a/tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/cloudfront/test_distribution.py b/tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/cloudfront/test_distribution.py
new file mode 100644
index 0000000000000000000000000000000000000000..38e27106c4c49c65825f3183a0b094cb456af997
--- /dev/null
+++ b/tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/cloudfront/test_distribution.py
@@ -0,0 +1,21 @@
+import unittest
+
+from boto.cloudfront.distribution import DistributionConfig
+from boto.cloudfront.logging import LoggingInfo
+
+
+class CloudfrontDistributionTest(unittest.TestCase):
+ cloudfront = True
+
+ def setUp(self):
+ self.dist = DistributionConfig()
+
+ def test_logging(self):
+ # Default.
+ self.assertEqual(self.dist.logging, None)
+
+ # Override.
+ lo = LoggingInfo(bucket='whatever', prefix='override_')
+ dist = DistributionConfig(logging=lo)
+ self.assertEqual(dist.logging.bucket, 'whatever')
+ self.assertEqual(dist.logging.prefix, 'override_')

Powered by Google App Engine
This is Rietveld 408576698