This part shouldn't be changed. job is assume to have ['jobid'] key not both job['id'] and job['jobid'].
Is there a any case passing different structure other then unittest