def test_is_job_environment_false(self):
     scheduler = EmopSLURM(self.settings)
     self.clear_job_id_env()
     retval = scheduler.is_job_environment()
     self.assertFalse(retval)
 def test_is_job_environment_true(self):
     scheduler = EmopSLURM(self.settings)
     os.environ["SLURM_JOB_ID"] = '0001'
     retval = scheduler.is_job_environment()
     self.assertTrue(retval)