def test_remove_bucket_default_owner(test_bucket, cloud_config): test_bucket.acl.user(TEST_EMAIL).grant_owner() test_bucket.acl.save() acl.remove_bucket_default_owner(cloud_config.storage_bucket, TEST_EMAIL) test_bucket.default_object_acl.reload() roles = test_bucket.default_object_acl.user(TEST_EMAIL).get_roles() assert 'OWNER' not in roles
def test_remove_bucket_default_owner(test_bucket): test_bucket.acl.user(TEST_EMAIL).grant_owner() test_bucket.acl.save() acl.remove_bucket_default_owner(BUCKET, TEST_EMAIL) test_bucket.default_object_acl.reload() roles = test_bucket.default_object_acl.user(TEST_EMAIL).get_roles() assert 'OWNER' not in roles