def mock_io(mocker):
    """Simple mocker group for IO fd's."""
    stdin = mocker.patch('sys.stdin', autospec=True)
    stdout = mocker.patch('sys.stdout', autospec=True)
    stderr = mocker.patch('sys.stderr', autospec=True)
    return {"stdin": stdin, "stdout": stdout, "stderr": stderr}