

@mock.patch.object(stored_playlists, '_get_last_modified')
def test_lsinfo_for_dir_with_and_without_leading_slash_is_the_same(self, last_modified_mock):
    last_modified_mock.return_value = '2015-08-05T22:51:06Z'
    self.backend.library.dummy_browse_result = {
        'dummy:/': [Ref.track(uri='dummy:/a', name='a'), Ref.directory(uri='dummy:/foo', name='foo')],
    }
    response1 = self.send_request('lsinfo "dummy"')
    response2 = self.send_request('lsinfo "/dummy"')
    self.assertEqual(response1, response2)

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