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

Unified Diff: third_party/gsutil/third_party/boto/tests/unit/cloudfront/test_distribution.py

Issue 1377933002: [catapult] - Copy Telemetry's gsutilz over to third_party. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Rename to gsutil. Created 5 years, 3 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: third_party/gsutil/third_party/boto/tests/unit/cloudfront/test_distribution.py
diff --git a/third_party/gsutil/third_party/boto/tests/unit/cloudfront/test_distribution.py b/third_party/gsutil/third_party/boto/tests/unit/cloudfront/test_distribution.py
new file mode 100644
index 0000000000000000000000000000000000000000..38e27106c4c49c65825f3183a0b094cb456af997
--- /dev/null
+++ b/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