object_default_acl = google.cloud.storage.acl.DefaultObjectACL(bucket)
acl.reload()
object_default_acl.reload()
time.sleep(1) // bucket ops rate limited 1 update per second
yield bucket
time.sleep(1) // bucket ops rate limited 1 update per second
acl.save()
After Change
Yields a bucket that is deleted after the test completes.
bucket = None
while bucket is None or bucket.exists():
bucket_name = "acl-test-{}".format(uuid.uuid4())
bucket = storage.Client().bucket(bucket_name)
bucket.create()
yield bucket
bucket.delete(force=True)