test_exec_command

Module Contents

class redirect_stdout(stdout=None)

Bases:object

Context manager to redirect stdout for exec_command test.

__enter__(self)
__exit__(self, exc_type, exc_value, traceback)
class redirect_stderr(stderr=None)

Bases:object

Context manager to redirect stderr for exec_command test.

__enter__(self)
__exit__(self, exc_type, exc_value, traceback)
class emulate_nonposix(osname='non-posix')

Bases:object

Context manager to emulate os.name != ‘posix’

__enter__(self)
__exit__(self, exc_type, exc_value, traceback)
test_exec_command_stdout()
test_exec_command_stderr()