

def test_listallinfo_without_uri(self):
    tracks = [Track(uri='dummy:/a', name='a'), Track(uri='dummy:/foo/b', name='b')]
    self.backend.library.dummy_library = tracks
    self.backend.library.dummy_browse_result = {
        'dummy:/': [Ref.track(uri='dummy:/a', name='a'), Ref.directory(uri='dummy:/foo', name='foo'), Ref.album(uri='dummy:/album', name='album'), Ref.artist(uri='dummy:/artist', name='artist'), Ref.playlist(uri='dummy:/pl', name='pl')],
        'dummy:/foo': [Ref.track(uri='dummy:/foo/b', name='b')],
    }
    self.send_request('listallinfo')
    self.assertInResponse('file: dummy:/a')
    self.assertInResponse('Title: a')
    self.assertInResponse('directory: /dummy/foo')
    self.assertInResponse('directory: /dummy/album')
    self.assertInResponse('directory: /dummy/artist')
    self.assertInResponse('directory: /dummy/pl')
    self.assertInResponse('file: dummy:/foo/b')
    self.assertInResponse('Title: b')
    self.assertInResponse('OK')

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