def validate(self, job):
        if not JobStatus.isValid(job['status']):
            raise ValidationException(
                'Invalid job status %s.' % job['status'], field='status')

        return job
dataset/ETHPy150Open girder/girder/plugins/jobs/server/models/job.py/Job.validate/original