示例#1
0
def test_remove_blob_owner(test_blob):
    test_blob.acl.user(TEST_EMAIL).grant_owner()
    test_blob.acl.save()

    acl.remove_blob_owner(BUCKET, test_blob.name, TEST_EMAIL)

    test_blob.acl.reload()
    assert 'OWNER' not in test_blob.acl.user(TEST_EMAIL).get_roles()
def test_remove_blob_owner(test_blob, cloud_config):
    test_blob.acl.user(TEST_EMAIL).grant_owner()
    test_blob.acl.save()

    acl.remove_blob_owner(cloud_config.storage_bucket, test_blob.name,
                          TEST_EMAIL)

    test_blob.acl.reload()
    assert 'OWNER' not in test_blob.acl.user(TEST_EMAIL).get_roles()
def test_remove_blob_owner(test_blob):
    test_blob.acl.user(TEST_EMAIL).grant_owner()
    test_blob.acl.save()

    acl.remove_blob_owner(
        BUCKET, test_blob.name, TEST_EMAIL)

    test_blob.acl.reload()
    assert 'OWNER' not in test_blob.acl.user(TEST_EMAIL).get_roles()
示例#4
0
def test_remove_blob_owner(test_blob, cloud_config):
    test_blob.acl.user(TEST_EMAIL).grant_owner()
    test_blob.acl.save()

    acl.remove_blob_owner(
        cloud_config.storage_bucket, test_blob.name, TEST_EMAIL)

    test_blob.acl.reload()
    assert 'OWNER' not in test_blob.acl.user(TEST_EMAIL).get_roles()