def test_delete_with_base_path(storage):
    base_path = 'base_path'
    storage.set_remote_base_path(base_path)
    storage.push_file('sample.txt', overwrite_existing=True)
    assert (len(storage.list_objects('sample.txt')) == 1)
    deleted_objects = storage.delete('sample.txt')
    assert (len(deleted_objects) == 1)
    assert (deleted_objects[0].name == f'{base_path}/sample.txt')
def test_delete_with_base_path(storage):
    base_path = 'base_path'
    storage.set_remote_base_path(base_path)
    storage.push_file('sample.txt', overwrite_existing=True)
    assert (len(storage.list_objects('sample.txt')) == 1)
    deleted_objects = storage.delete('sample.txt')
    assert (len(deleted_objects) == 1)
    assert (deleted_objects[0].name == f'{base_path}/sample.txt')