Exemple #1
0
def test_result_stdout_raw_handle__pending(exists):
    unified_job = UnifiedJob()
    unified_job.result_stdout_file = 'dummy'
    unified_job.finished = None

    result = unified_job.result_stdout_raw_handle()

    assert isinstance(result, StringIO)
    assert result.read() == 'Waiting for results...'
Exemple #2
0
def test_result_stdout_raw_handle__missing(exists):
    unified_job = UnifiedJob()
    unified_job.result_stdout_file = 'dummy'
    unified_job.finished = now()

    result = unified_job.result_stdout_raw_handle()

    assert isinstance(result, StringIO)
    assert result.read() == 'stdout capture is missing'