def METHOD_NAME():
    exc_args = ('foo bar', 'partial output', 'error message', 1)
    e = exc.SpawnedProcessError(*exc_args)
    with pytest.raises(
            exc.ReframeError,
            match=(r"command 'foo bar' failed with exit code 1:\n"
                   r"--- stdout ---\n"
                   r'partial output\n'
                   r"--- stdout ---\n"
                   r"--- stderr ---\n"
                   r"error message\n"
                   r"--- stderr ---")
    ):
        raise e
    assert exc_args == e.args