def test_job_session(self): session = drmaa2.create_job_session() name = session.session_name session.close() session = drmaa2.open_job_session(name) session.close() drmaa2.destroy_session(name)
def test_run_job_without_contact(self): session = drmaa2.create_job_session() jt = drmaa2.JobTemplate({'remoteCommand': '/bin/sleep'}) job = session.run_job(jt) job.wait_terminated(drmaa2.INFINITE_TIME)