docs: def fake_fetch_job(config, src_dir):
      '''
      Act like fetch_job, but take the validator file and the student
      submission files directly from a directory.
  
      Intended for testing purposes when developing test scripts.
  
      Check also cmdline.py.
      '''
      logger.debug("Creating fake job from " + src_dir)
      from .job import Job
      job = Job(config, online=False)
      job.working_dir = create_working_dir(config, '42')
      for fname in glob.glob(src_dir + os.sep + '*'):
          logger.debug("Copying {0} to {1} ...".format(fname, job.working_dir))
          shutil.copy(fname, job.working_dir)
      case_files = glob.glob(job.working_dir + os.sep + '*')
      assert(len(case_files) == 2)
      if os.path.basename(case_files[0]) in ['validator.py', 'validator.zip']:
          validator = case_files[0]
          submission = case_files[1]
      else:
          validator = case_files[1]
          submission = case_files[0]
      logger.debug('{0} is the validator.'.format(validator))
      logger.debug('{0} the submission.'.format(submission))
      try:
          prepare_working_directory(job,
                                    submission_path=submission,
                                    validator_path=validator)
      except JobException as e:
          job.send_fail_result(e.info_student, e.info_tutor)
          return None
      logger.debug("Got fake job: " + str(job))
      return job