def METHOD_NAME(mock_tools):
    mock_tools.input.release_console_control = Mock(
        wraps=mock_tools.input.release_console_control
    )
    METHOD_NAME = Subprocess(mock_tools)
    METHOD_NAME._subprocess = MagicMock(spec_set=subprocess)
    METHOD_NAME._run_and_stream_output = MagicMock()
    return METHOD_NAME