def METHOD_NAME(reporter):
    """
    Assert that, in the case of an stderr file, it is included in the XML
    that constitutes the ERROR file.
    The report system is left out, since this was tested in the fail case.
    """
    with open("stderr.out.0", "a", encoding="utf-8") as stderr:
        stderr.write("Error:\n")
        stderr.write("E_MASSIVE_FAILURE\n")
    reporter._dump_error_file(
        Job({"name": "job1", "stderr": "stderr.out.0"}, 0), "massive_failure"
    )
    with open(ERROR_file, "r", encoding="utf-8") as f:
        content = "".join(f.readlines())
        assert "E_MASSIVE_FAILURE" in content, "ERROR file missing stderr content"
        assert "<stderr_file>" in content, "ERROR missing stderr_file part"