def test_change_job_id_doesnt_affect_unstarted_jobs(self):
    subject = MockTask(state=task.JobState.UNSTARTED)
    self.assertTrue(subject.is_unstarted)
    subject.change_job_id('test', 12)
    self.assertTrue(subject.is_unstarted)
    self.assertIsNone(subject.node_id)
    self.assertIsNone(subject.job_id)
def test_change_job_id_doesnt_affect_unstarted_jobs(self):
    subject = MockTask(state=task.JobState.UNSTARTED)
    self.assertTrue(subject.is_unstarted)
    subject.change_job_id('test', 12)
    self.assertTrue(subject.is_unstarted)
    self.assertIsNone(subject.node_id)
    self.assertIsNone(subject.job_id)