def METHOD_NAME(
    self, cmd_output: str, expected: str, mocker: MockerFixture, tmp_path: Path
) -> None:
    """Test version."""
    mock_run_command = mocker.patch.object(
        Pip, "_run_command", return_value=cmd_output
    )
    version_cls = mocker.patch(f"{MODULE}.Version", return_value="success")
    assert Pip(Mock(), tmp_path).version == version_cls.return_value
    mock_run_command.assert_called_once_with([Pip.EXECUTABLE, "--version"])
    version_cls.assert_called_once_with(expected)