6c7f63e58534ff60c524324a1cf8628c838df772,storage/cloud-client/iam_test.py,,bucket,#,34

Before Change



@pytest.fixture
def bucket():
    bucket_name = "test-iam-" + str(int(time.time()))
    bucket = storage.Client().create_bucket(bucket_name)
    bucket.iam_configuration.uniform_bucket_level_access_enabled = True
    bucket.patch()
    yield bucket

After Change



@pytest.fixture
def bucket():
    bucket = None
    while bucket is None or bucket.exists():
        bucket_name = "test-iam-{}".format(uuid.uuid4())
        bucket = storage.Client().bucket(bucket_name)
    bucket.create()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 6c7f63e58534ff60c524324a1cf8628c838df772
Time: 2020-03-05
Author: crwilcox@google.com
File Name: storage/cloud-client/iam_test.py
Class Name:
Method Name: bucket


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 646012c26db9335f69216c5d8656090c4211f323
Time: 2020-03-05
Author: crwilcox@google.com
File Name: storage/cloud-client/bucket_lock_test.py
Class Name:
Method Name: bucket


Project Name: shibing624/pycorrector
Commit Name: 289c479060004bd9fd638dab7027f407ba75e798
Time: 2019-11-24
Author: xuming624@qq.com
File Name: pycorrector/detector.py
Class Name: Detector
Method Name: initialize_detector