class_docstr: Unit test for Google Test's XML output functionality.
class_docstr_tok: ["Unit","test","for","Google","Test","'s","XML","output","functionality","."]
docstr: Asserts that the XML document matches.
  
  Asserts that the XML document generated by running the program
  gtest_prog_name matches expected_xml, a string containing another
  XML document.  Furthermore, the program's exit code must be
  expected_exit_code.
  
  Args:
    gtest_prog_name: Program to run.
    expected_xml: Path to XML document to match.
    expected_exit_code: Expected exit code from running gtest_prog_name.
    extra_args: Optional arguments to pass to program.
    extra_env: Optional environment variables to set.
docstr_tok: ["Asserts","that","the","XML","document","matches",".","Asserts","that","the","XML","document","generated","by","running","the","program","gtest_prog_name","matches","expected_xml",",","a","string","containing","another","XML","document",".","Furthermore",",","the","program","'s","exit","code","must","be","expected_exit_code",".","Args",":","gtest_prog_name",":","Program","to","run",".","expected_xml",":","Path","to","XML","document","to","match",".","expected_exit_code",":","Expected","exit","code","from","running","gtest_prog_name",".","extra_args",":","Optional","arguments","to","pass","to","program",".","extra_env",":","Optional","environment","variables","to","set","."]
code: def _TestXmlOutput(
      self,
      gtest_prog_name,
      expected_xml,
      expected_exit_code,
      extra_args=None,
      extra_env=None,
  ):
      """Asserts that the XML document matches.
  
      Asserts that the XML document generated by running the program
      gtest_prog_name matches expected_xml, a string containing another
      XML document.  Furthermore, the program's exit code must be
      expected_exit_code.
  
      Args:
        gtest_prog_name: Program to run.
        expected_xml: Path to XML document to match.
        expected_exit_code: Expected exit code from running gtest_prog_name.
        extra_args: Optional arguments to pass to program.
        extra_env: Optional environment variables to set.
      """
  
      actual = self._GetXmlOutput(
          gtest_prog_name,
          extra_args or [],
          extra_env or {},
          expected_exit_code,
      )
      expected = minidom.parseString(expected_xml)
      self.NormalizeXml(actual.documentElement)
      self.AssertEquivalentNodes(
          expected.documentElement, actual.documentElement
      )
      expected.unlink()
      actual.unlink()
  
file_path: googletest/googletest/test/gtest_xml_output_unittest.py
imports: import datetime
  import errno
  import os
  import re
  import sys
  from xml.dom import minidom, Node
  from googletest.test import gtest_test_utils
  from googletest.test import gtest_xml_test_utils
label_desc: Use image node_id 8 for calling the GTestXMLOutputUnitTest obj's underlying member method code with example usage: obj._TestXmlOutput(gtest_prog_name, expected_xml, expected_exit_code, extra_args, extra_env) without return types