def test_filename(): assert library.filename(path_file) == 'file.ext'
def set_album_path(album, path): """Change the path of an Album and each of its tracks""" album.path = path for track in album: track.path = os.path.join(path, filename(track.path))