示例#1
0
文件: s3.py 项目: mwhooker/aws-compat
    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]
示例#2
0
文件: s3.py 项目: mwhooker/aws-compat
    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]