

def test_lsinfo_for_root_returns_browse_result_before_playlists(self):
    self.backend.library.dummy_browse_result = {
        'dummy:/': [Ref.track(uri='dummy:/a', name='a'), Ref.directory(uri='dummy:/foo', name='foo')],
    }
    self.backend.playlists.set_dummy_playlists([Playlist(name='a', uri='dummy:/a')])
    response = self.send_request('lsinfo "/"')
    self.assertLess(response.index('directory: dummy'), response.index('playlist: a'))

dataset/ETHPy150Open mopidy/mopidy/tests/mpd/protocol/test_music_db.py MusicDatabaseHandlerTest.test_lsinfo_for_root_returns_browse_result_before_playlists/original