Exemple #1
0
 def test_troposphere_type_create_multiple(self):
     troposphere_type = TroposphereType(s3.Bucket, many=True)
     created = troposphere_type.create({
         "FirstBucket": {"BucketName": "test-bucket"},
         "SecondBucket": {"BucketName": "other-test-bucket"},
     })
     self.assertTrue(isinstance(created, list))
Exemple #2
0
 def test_troposphere_type_create(self):
     troposphere_type = TroposphereType(s3.Bucket)
     created = troposphere_type.create(
         {"MyBucket": {
             "BucketName": "test-bucket"
         }})
     self.assertTrue(isinstance(created, s3.Bucket))
     self.assertTrue(created.properties["BucketName"], "test-bucket")
Exemple #3
0
 def test_troposphere_type_create(self):
     troposphere_type = TroposphereType(s3.Bucket)
     created = troposphere_type.create(
         {"MyBucket": {"BucketName": "test-bucket"}})
     self.assertTrue(isinstance(created, s3.Bucket))
     self.assertTrue(created.properties["BucketName"], "test-bucket")