def test_mark_job_started_changes_unstarted_to_running(self):
    subject = MockTask(state=task.JobState.UNSTARTED)
    self.assertTrue(subject.is_unstarted)
    self.assertFalse(subject.is_running)
    subject.mark_job_started('test', 12)
    self.assertFalse(subject.is_unstarted)
    self.assertTrue(subject.is_running)
def test_mark_job_started_changes_unstarted_to_running(self):
    subject = MockTask(state=task.JobState.UNSTARTED)
    self.assertTrue(subject.is_unstarted)
    self.assertFalse(subject.is_running)
    subject.mark_job_started('test', 12)
    self.assertFalse(subject.is_unstarted)
    self.assertTrue(subject.is_running)