class_docstr: Test the SAFE MTD XML file handler.
class_docstr_tok: ["Test","the","SAFE","MTD","XML","file","handler","."]
docstr: Set up the test case.
docstr_tok: ["Set","up","the","test","case","."]
code: def setup_method(self):
      """Set up the test case."""
      from satpy.readers.msi_safe import SAFEMSIMDXML, SAFEMSITileMDXML
  
      filename_info = dict(
          observation_time=None, dtile_number=None, fmission_id="S2A"
      )
      self.xml_tile_fh = SAFEMSITileMDXML(
          BytesIO(mtd_tile_xml), filename_info, mock.MagicMock()
      )
      self.old_xml_fh = SAFEMSIMDXML(
          StringIO(mtd_l1c_old_xml), filename_info, mock.MagicMock()
      )
      self.xml_fh = SAFEMSIMDXML(
          StringIO(mtd_l1c_xml),
          filename_info,
          mock.MagicMock(),
          mask_saturated=True,
      )
  
file_path: satpy/satpy/tests/reader_tests/test_msi_safe.py
imports: import unittest.mock
  from io import BytesIO, StringIO
  import numpy
  import pytest
  import xarray
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 1 for calling the TestMTDXML obj's underlying member method code with example usage: obj.setup_method() without return types