The oslotest.output Module

class oslotest.output.CaptureOutput

Bases: fixtures.fixture.Fixture

Optionally capture the output streams.

The behavior is managed through two environment variables. If OS_STDOUT_CAPTURE is true then stdout is captured and if OS_STDERR_CAPTURE is true then stderr is captured.

“True” values include True, true, 1, and yes.

stdout

The stream attribute from a StringStream instance replacing stdout.

stderr

The stream attribute from a StringStream instance replacing stderr.

setUp()