def test_change_job_id_doesnt_affect_finished_jobs(self):
    subject = MockTask(state=task.JobState.DONE, node_id='external', job_id=3)
    self.assertTrue(subject.is_finished)
    self.assertEqual('external', subject.node_id)
    self.assertEqual(3, subject.job_id)
    subject.change_job_id('test', 12)
    self.assertTrue(subject.is_finished)
    self.assertEqual('external', subject.node_id)
    self.assertEqual(3, subject.job_id)
def test_change_job_id_doesnt_affect_finished_jobs(self):
    subject = MockTask(state=task.JobState.DONE, node_id='external', job_id=3)
    self.assertTrue(subject.is_finished)
    self.assertEqual('external', subject.node_id)
    self.assertEqual(3, subject.job_id)
    subject.change_job_id('test', 12)
    self.assertTrue(subject.is_finished)
    self.assertEqual('external', subject.node_id)
    self.assertEqual(3, subject.job_id)