

def test_dates_are_extracted(self):
    result = music_db._query_from_mpd_search_parameters(['Date', '1974-01-02', 'Date', '1975'], music_db._SEARCH_MAPPING)
    self.assertEqual(result['date'][0], '1974-01-02')
    self.assertEqual(result['date'][1], '1975')

dataset/ETHPy150Open mopidy/mopidy/tests/mpd/protocol/test_music_db.py QueryFromMpdSearchFormatTest.test_dates_are_extracted/original