def METHOD_NAME(self):
    """Tests when only name is specified"""
    # When mode is COPY and the storage object doesn't exist - error out
    with pytest.raises(exceptions.StorageSourceError) as e:
        storage_lib.Storage(name='sky-test-bucket',
                            mode=storage_lib.StorageMode.COPY)
    assert 'source must be specified when using COPY mode' in str(e)
    # When mode is MOUNT - valid spec (e.g., use for scratch space)
    storage_lib.Storage(name='sky-test-bucket',
                        mode=storage_lib.StorageMode.MOUNT)