

@mock.patch.object(stored_playlists, '_get_last_modified')
def test_lsinfo_for_root_includes_playlists(self, last_modified_mock):
    last_modified_mock.return_value = '2015-08-05T22:51:06Z'
    self.backend.playlists.set_dummy_playlists([Playlist(name='a', uri='dummy:/a')])
    self.send_request('lsinfo "/"')
    last_modified_mock.assertInResponse('playlist: a')
    self.assertInResponse('Last-Modified: 2015-08-05T22:51:06Z')
    self.assertInResponse('OK')

dataset/ETHPy150Open mopidy/mopidy/tests/mpd/protocol/test_music_db.py MusicDatabaseHandlerTest.test_lsinfo_for_root_includes_playlists/VarMisuse@59/118 `self`->`last_modified_mock`