def generate_album_info(album_id, track_ids):
 tracks = [generate_track_info(id) for id in track_ids]
 album = AlbumInfo(album_id=u'album info', album=u'album info', artist=u'album info', artist_id=u'album info', tracks=tracks)
 for field in ALBUM_INFO_FIELDS:
  setattr(album, field, u'album info')
 return album

def generate_album_info ( album_id , track_ids ) : tracks = [ generate_track_info ( id ) for id in track_ids ] album = AlbumInfo ( album_id = u'album info' , album = u'album info' , artist = u'album info' , artist_id = u'album info' , tracks = tracks ) for field in ALBUM_INFO_FIELDS : setattr ( album , field , u'album info' ) return album
return albuminfo populated with mock data .