def test_append_stdout_join(self): '''Tests appending output to existing output.''' job_exe = JobExecution(stdout='initial') job_exe.append_stdout('-test1') self.assertEqual(job_exe.stdout, 'initial-test1')
def test_append_stdout_none(self): '''Tests skipping append when no output is provided.''' job_exe = JobExecution(stdout='initial') job_exe.append_stdout(None) self.assertEqual(job_exe.stdout, 'initial')
def test_append_stdout_initial(self): '''Tests appending output for the first time.''' job_exe = JobExecution() job_exe.append_stdout(stdout='initial') self.assertEqual(job_exe.stdout, 'initial')