def METHOD_NAME(self):
    plugin = self.mod.PlaylistExport()
    song1 = AudioFile(
        {
            "~filename": "/a/b/c.mp3",
            "~#length": 123,
            "artist": "a",
            "title": "c",
        }
    )
    song2 = AudioFile(
        {
            "~filename": "/a/b/d.mp3",
            "~#length": 400,
            "artist": "b",
            "title": "d",
        }
    )
    with temp_filename() as playlist_file_path:
        plugin.save_playlist(
            [song1, song2], playlist_file_path, self.mod.FORMAT_M3U, relative=False
        )
        with open(playlist_file_path, "r") as f:
            result = f.read()
    assert result == dedent(
        """\
        #EXTM3U
        #EXTINF:123,a - c
        /a/b/c.mp3
        #EXTINF:400,b - d
        /a/b/d.mp3
        """
    )