Example #1
0
 def test_validate_qacct_normal_wrongusername(self):
     """
     Test that a job can be validated from qacct stdout
     """
     job = Job(id='3956736', debug=True)
     with open(self.qacct_normal_file) as f:
         qacct_stdout = f.read()
     job.qacct_stdout = qacct_stdout
     validation = job.validate_completion(username='******', days_limit=None)
     self.assertFalse(validation)
Example #2
0
 def test_validate_qacct_killed1(self):
     """
     Test that a job that was killed due to errors does not pass validation
     """
     job = Job(id='3949361', debug=True)
     with open(self.qacct_killed_file) as f:
         qacct_stdout = f.read()
     job.qacct_stdout = qacct_stdout
     validation = job.validate_completion(username='******',
                                          days_limit=None)
     self.assertFalse(validation)