Example #1
0
 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')
Example #2
0
 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')
Example #3
0
 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')