Exemplo n.º 1
0
 def test_append_stderr_join(self):
     '''Tests appending error to existing error.'''
     job_exe = JobExecution(stderr='initial')
     job_exe.append_stderr('-test1')
     
     self.assertEqual(job_exe.stderr, 'initial-test1')
Exemplo n.º 2
0
 def test_append_stderr_none(self):
     '''Tests skipping append when no error is provided.'''
     job_exe = JobExecution(stderr='initial')
     job_exe.append_stderr(None)
     
     self.assertEqual(job_exe.stderr, 'initial')
Exemplo n.º 3
0
 def test_append_stderr_initial(self):
     '''Tests appending error for the first time.'''
     job_exe = JobExecution()
     job_exe.append_stderr(stderr='initial')
     
     self.assertEqual(job_exe.stderr, 'initial')