def mocked_get_release_by_id(id_, includes=[], release_status=[], release_type=[]):
 releases = {ImportMusicBrainzIdTest.ID_RELEASE_0: ('VALID_RELEASE_0', 'TAG ARTIST'), ImportMusicBrainzIdTest.ID_RELEASE_1: ('VALID_RELEASE_1', 'DISTANT_MATCH')}
 return {'release': {'title': releases[id_][0], 'id': id_, 'medium-list': [{'track-list': [{'recording': {'title': 'foo', 'id': 'bar', 'length': 59}, 'position': 9, 'number': 'A2'}], 'position': 5}], 'artist-credit': [{'artist': {'name': releases[id_][1], 'id': 'some-id'}}], 'release-group': {'id': 'another-id'}}}

def mocked_get_release_by_id ( id_ , includes = [ ] , release_status = [ ] , release_type = [ ] ) : releases = { ImportMusicBrainzIdTest . ID_RELEASE_0 : ( 'VALID_RELEASE_0' , 'TAG ARTIST' ) , ImportMusicBrainzIdTest . ID_RELEASE_1 : ( 'VALID_RELEASE_1' , 'DISTANT_MATCH' ) } return { 'release' : { 'title' : releases [ id_ ] [ 0 ] , 'id' : id_ , 'medium-list' : [ { 'track-list' : [ { 'recording' : { 'title' : 'foo' , 'id' : 'bar' , 'length' : 59 } , 'position' : 9 , 'number' : 'A2' } ] , 'position' : 5 } ] , 'artist-credit' : [ { 'artist' : { 'name' : releases [ id_ ] [ 1 ] , 'id' : 'some-id' } } ] , 'release-group' : { 'id' : 'another-id' } } }
mimic musicbrainzngs .