class_docstr: Test the HRIT Prologue FileHandler.
docstr: Set up the hrit file handler for testing.
docstr_tok: ["Set","up","the","hrit","file","handler","for","testing","."]
code: def test_init(self, new_fh_init, fromfile):
      """Set up the hrit file handler for testing."""
      new_fh_init.return_value.filename = "filename"
      HRITGOMSPrologueFileHandler.filename = "filename"
      HRITGOMSPrologueFileHandler.mda = {"total_header_length": 1}
  
      # Set up the test data to use within the prologue reader
      tss = np.array(
          [(2, 292, 19002, "ELECTRO", 1.3264, 1, 0.0)],
          dtype=satellite_status,
      )
      tia = np.tile(
          np.array([(3, 24, 2, 9119019, 0.0)], dtype=image_acquisition),
          (1, 10),
      )
      tc = np.full((10, 1024), 50)
      rtv = np.array([(tss, tia, tc)], dtype=prologue)
      # Pretend to return this when reading a fake prologue
      fromfile.return_value = rtv
      m = mock.mock_open()
  
      with mock.patch(
          "satpy.readers.electrol_hrit.open", m, create=True
      ) as newopen:
          newopen.return_value.__enter__.return_value.seek.return_value = (
              1
          )
          test_t = datetime.datetime(2018, 1, 1, 0, 0)
          self.reader = HRITGOMSPrologueFileHandler(
              "filename",
              {
                  "platform_shortname": "GOMS2",
                  "start_time": test_t,
                  "service": "test_service",
              },
              {"filetype": "info"},
          )
  
      # assertDictEqual doesn't seem to work for dicts containing dicts,
      # so we must compare some items individually
      assert (
          self.test_pro["SatelliteStatus"]
          == self.reader.prologue["SatelliteStatus"]
      )
      prop = "ImageAcquisition"
      for key in self.reader.prologue[prop]:
          np.testing.assert_array_equal(
              self.test_pro[prop][key], self.reader.prologue[prop][key]
          )
      np.testing.assert_array_equal(
          self.test_pro["ImageCalibration"],
          self.reader.prologue["ImageCalibration"],
      )
  
imports: import datetime
  import unittest
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  from xarray import DataArray
  from satpy.readers.electrol_hrit import HRITGOMSEpilogueFileHandler, HRITGOMSFileHandler, HRITGOMSPrologueFileHandler, epilogue, image_acquisition, prologue, recarray2dict, satellite_status
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 1 for calling the TestHRITGOMSProFileHandler obj's underlying member method code with example usage: obj.test_init(new_fh_init, fromfile) without return types