def test_name_collisions_deleting_properly(setup_name_collision, storage):
    storage.set_remote_base_path(NAME_COLLISIONS_DIR_NAME)
    storage.delete('file.txt')
    remaining_object_names = [obj.name.lstrip('/').lstrip(f'{NAME_COLLISIONS_DIR_NAME}/') for obj in storage.list_objects('')]
    assert ('file.txt' not in remaining_object_names)
    assert ('file.txt.collision' in remaining_object_names)
    assert ('dir_name/file.txt' in remaining_object_names)
def test_name_collisions_deleting_properly(setup_name_collision, storage):
    storage.set_remote_base_path(NAME_COLLISIONS_DIR_NAME)
    storage.delete('file.txt')
    remaining_object_names = [obj.name.lstrip('/').lstrip(f'{NAME_COLLISIONS_DIR_NAME}/') for obj in storage.list_objects()]
    assert ('file.txt' not in remaining_object_names)
    assert ('file.txt.collision' in remaining_object_names)
    assert ('dir_name/file.txt' in remaining_object_names)