Ejemplo n.º 1
0
    def pre(self):
        self.bucket_name = self.make_uuid('bucket')
        self.bucket = s3_conn.create_bucket(self.bucket_name)

        all_buckets = s3_conn.get_all_buckets()
        assert self.bucket_name in [bucket.name for bucket in all_buckets]
Ejemplo n.º 2
0
    def post(self):
        s3_conn.delete_bucket(self.bucket_name)

        all_buckets = s3_conn.get_all_buckets()
        assert self.bucket_name not in [bucket.name for bucket in all_buckets]