def test_mark_job_started_doesnt_affect_already_running_jobs(self):
    subject = MockTask(state=task.JobState.RUNNING, node_id='external', job_id=3)
    self.assertFalse(subject.is_unstarted)
    self.assertTrue(subject.is_running)
    self.assertFalse(subject.is_finished)
    subject.mark_job_started('test', 12)
    self.assertFalse(subject.is_unstarted)
    self.assertTrue(subject.is_running)
    self.assertFalse(subject.is_finished)
    self.assertEqual('external', subject.node_id)
    self.assertEqual(3, subject.job_id)
def test_mark_job_started_doesnt_affect_already_running_jobs(self):
    subject = MockTask(state=task.JobState.RUNNING, node_id='external', job_id=3)
    self.assertFalse(subject.is_unstarted)
    self.assertTrue(subject.is_running)
    self.assertFalse(subject.is_finished)
    subject.mark_job_started('test', 12)
    self.assertFalse(subject.is_unstarted)
    self.assertTrue(subject.is_running)
    self.assertFalse(subject.is_finished)
    self.assertEqual('external', subject.node_id)
    self.assertEqual(3, subject.job_id)