Ejemplo n.º 1
0
 def test_job_Eqw(self):
     """
     Make sure an Eqw job can be identified
     """
     x = Job(id='2493898', debug=True)
     x._debug_update(qstat_stdout=self.qstat_stdout_r_Eqw_str)
     status = x.status
     expected = 'Eqw'
     self.assertTrue(status == expected)
Ejemplo n.º 2
0
 def test_job_Eqw_not_running(self):
     """
     Make sure an Eqw job is labeled as not running
     """
     x = Job(id='2493898', debug=True)
     x._debug_update(qstat_stdout=self.qstat_stdout_r_Eqw_str)
     status = x.status
     expected = 'Eqw'
     self.assertFalse(x.is_running)
Ejemplo n.º 3
0
    def test_running_job1(self):
        """
        Find running job
        id = '2495634'
        self.qstat_stdout_r_Eqw_file

        qstat_stdout_r_Eqw_file = "fixtures/qstat_stdout_r_Eqw.txt"
        with open(qstat_stdout_r_Eqw_file, "rb") as f: qstat_stdout_r_Eqw_str = f.read()
        from qsub import Job
        x = Job(id = '2495634', debug = True)
        """
        x = Job(id='2495634', debug=True)
        x._debug_update(qstat_stdout=self.qstat_stdout_r_Eqw_str)
        self.assertTrue(x.is_running)