def test_initialise_services(): assert MusicService._music_services_data is None data = MusicService._get_music_services_data() assert len(data) == 6 deezer = data['519'] assert deezer['Name'] == "Deezer" assert deezer['Capabilities'] == '563' assert deezer['Auth'] == 'UserId' assert deezer['Version'] == '1.1' assert deezer['ContainerType'] == 'MService' assert deezer['Id'] == '2' assert deezer['PresentationMapUri'] == \ 'http://sonos-pmap.ws.sonos.com/deezer_pmap.4.xml' assert deezer['ServiceType'] == '519'
def test_initialise_services(): assert MusicService._music_services_data is None data = MusicService._get_music_services_data() assert len(data) == 6 deezer = data["519"] assert deezer["Name"] == "Deezer" assert deezer["Capabilities"] == "563" assert deezer["Auth"] == "UserId" assert deezer["Version"] == "1.1" assert deezer["ContainerType"] == "MService" assert deezer["Id"] == "2" assert (deezer["PresentationMapUri"] == "http://sonos-pmap.ws.sonos.com/deezer_pmap.4.xml") assert deezer["ServiceType"] == "519"