def generate_track_info(track_id='track info', values={}):
 track = TrackInfo(title=u'track info', track_id=track_id)
 for field in TRACK_INFO_FIELDS:
  setattr(track, field, u'track info')
 for (field, value) in values.items():
  setattr(track, field, value)
 return track

def generate_track_info ( track_id = 'track info' , values = { } ) : track = TrackInfo ( title = u'track info' , track_id = track_id ) for field in TRACK_INFO_FIELDS : setattr ( track , field , u'track info' ) for ( field , value ) in values . items ( ) : setattr ( track , field , value ) return track
return trackinfo populated with mock data .