def METHOD_NAME(mock_sub):
    """If a cwd is provided, it is reflected in the environment."""
    cwd_override = "/my/current/path"
    assert mock_sub.final_kwargs(cwd=cwd_override) == {
        "text": True,
        "encoding": CONSOLE_ENCODING,
        "errors": "backslashreplace",
        "cwd": cwd_override,
    }