class_docstr: Test the HRITFileHandler.
class_docstr_tok: ["Test","the","HRITFileHandler","."]
docstr: Setup the hrit file handler for testing.
docstr_tok: ["Setup","the","hrit","file","handler","for","testing","."]
code: def test_init(self, new_fh_init, fromfile, recarray2dict):
      """Setup the hrit file handler for testing."""
      recarray2dict.side_effect = lambda x: x[0]
      new_fh_init.return_value.filename = "filename"
      HRITGOESPrologueFileHandler.filename = "filename"
      HRITGOESPrologueFileHandler.mda = {"total_header_length": 1}
      ret = {}
      the_time = np.array(
          [(32, 24, 18, 146, 19, 50, 121, 153)], dtype=sgs_time
      )[0]
      for key in [
          "TCurr",
          "TCHED",
          "TCTRL",
          "TLHED",
          "TLTRL",
          "TIPFS",
          "TINFS",
          "TISPC",
          "TIECL",
          "TIBBC",
          "TISTR",
          "TLRAN",
          "TIIRT",
          "TIVIT",
          "TCLMT",
          "TIONA",
      ]:
          ret[key] = the_time
      ret["SubSatLatitude"] = np.frombuffer(
          b"\x00\x00\x00\x00", dtype=">i4"
      )[0]
      ret["ReferenceLatitude"] = np.frombuffer(
          b"\x00\x00\x00\x00", dtype=">i4"
      )[0]
      ret["SubSatLongitude"] = np.frombuffer(
          b"\x42\x64\x2a\x00", dtype=">i4"
      )[0]
      ret["ReferenceLongitude"] = np.frombuffer(
          b"\x42\x64\x2a\x00", dtype=">i4"
      )[0]
      ret["ReferenceDistance"] = np.frombuffer(
          b"\x42\x64\x2a\x00", dtype=">i4"
      )[0]
      ret["SatelliteID"] = 15
      fromfile.return_value = [ret]
      m = mock.mock_open()
      with mock.patch(
          "satpy.readers.goes_imager_hrit.open", m, create=True
      ) as newopen:
          newopen.return_value.__enter__.return_value.seek.return_value = (
              1
          )
          self.reader = HRITGOESPrologueFileHandler(
              "filename",
              {
                  "platform_shortname": "GOES15",
                  "start_time": datetime.datetime(2016, 3, 3, 0, 0),
                  "service": "test_service",
              },
              {"filetype": "info"},
          )
  
      assert test_pro == self.reader.prologue
  
imports: import datetime
  import unittest
  from unittest import mock
  import numpy
  from xarray import DataArray
  from satpy.readers.goes_imager_hrit import ALTITUDE, HRITGOESFileHandler, HRITGOESPrologueFileHandler, make_gvar_float, make_sgs_time, sgs_time
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 1 for calling the TestHRITGOESPrologueFileHandler obj's underlying member method code with example usage: obj.test_init(new_fh_init, fromfile, recarray2dict) without return types