def test_max_wall_time_throw_exception_delta_after_submit(self):
     job = Job(self.conn, "job-name")
     self.submit_job(job)
     delta = datetime.timedelta(days=2, hours=33, minutes=66, seconds=66)
     with pytest.raises(AttributeError):
         job.max_wall_time = delta
     with pytest.raises(AttributeError):
         job.max_wall_time = "3.10:07:04"
 def test_max_wall_time_setting_throw_exception_with_number(self):
     job = Job(self.conn, "job-name")
     with pytest.raises(TypeError):
         job.max_wall_time = 10
 def test_max_wall_time_accept_string_before_submit(self):
     job = Job(self.conn, "job-name")
     job.max_wall_time = "3.10:07:04"
     assert "3.10:07:04" == job.max_wall_time
 def test_max_wall_time_accept_delta_before_submit(self):
     job = Job(self.conn, "job-name")
     delta = datetime.timedelta(days=2, hours=33, minutes=66, seconds=66)
     job.max_wall_time = delta
     assert "3.10:07:06" == job.max_wall_time