Mercurial > hg > pmhd
view musixmatch-master/tests/artist.py @ 13:844d341cf643 tip
Back up before ISMIR
author | Yading Song <yading.song@eecs.qmul.ac.uk> |
---|---|
date | Thu, 31 Oct 2013 13:17:06 +0000 |
parents | 8c29444cb5fd |
children |
line wrap: on
line source
from musixmatch import * from tests import base class TestArtist(base.TestItem): Class = artist.Artist item = { "artist_id": "292", "artist_mbid": "292", } item_str = "{ 'artist_id': '292',\n 'artist_mbid': '292'}" item_repr = "Artist({'artist_mbid': '292', 'artist_id': '292'})" item_hash = 292 class TestArtistsCollection(base.TestCollection): CollectionClass = artist.ArtistsCollection AllowedContentClass = artist.ArtistsCollection.allowedin() item_list = 'artist_list' item_id = 'artist_id' item = 'artist' message = { "body": { "artist_list": [ { "artist": { "artist_id": "292", "artist_mbid": "292", } }, { "artist": { "artist_id": "8976", "artist_mbid": "8976", } }, { "artist": { "artist_id": "9673", "artist_mbid": "9673", } } ] }, "header": { "execute_time": 0.14144802093506001, "status_code": 200 } }