| 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_')
|
|
|