def test_mark_job_complete_doesnt_affect_unstarted_jobs(self):
    subject = MockTask(state=task.JobState.UNSTARTED)
    self.assertTrue(subject.is_unstarted)
    self.assertFalse(subject.is_running)
    self.assertFalse(subject.is_finished)
    subject.mark_job_complete()
    self.assertTrue(subject.is_unstarted)
    self.assertFalse(subject.is_running)
    self.assertFalse(subject.is_finished)
def test_mark_job_complete_doesnt_affect_unstarted_jobs(self):
    subject = MockTask(state=task.JobState.UNSTARTED)
    self.assertTrue(subject.is_unstarted)
    self.assertFalse(subject.is_running)
    self.assertFalse(subject.is_finished)
    subject.mark_job_complete()
    self.assertTrue(subject.is_unstarted)
    self.assertFalse(subject.is_running)
    self.assertFalse(subject.is_finished)