class_docstr: Test the HRIT Epilogue 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"
      HRITGOMSEpilogueFileHandler.filename = "filename"
      HRITGOMSEpilogueFileHandler.mda = {"total_header_length": 1}
  
      # Set up the test data to use within the epilogue reader
      rtv = np.ones((1,), dtype=epilogue)
      # Pretend to return this when reading a fake epilogue
      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 = HRITGOMSEpilogueFileHandler(
              "filename",
              {
                  "platform_shortname": "GOMS2",
                  "start_time": test_t,
                  "service": "test_service",
              },
              {"filetype": "info"},
          )
  
          epi = self.reader.epilogue
  
          # We don't check everything in the epilogue (too many nested dicts)
          # but rather check the epilogue is returned as a dict and that two
          # representative data fields are as we expect.
          assert isinstance(epi, dict)
          np.testing.assert_array_equal(
              epi["RadiometricProcessing"]["RPSummary"]["IsOptic"],
              np.ones(10),
          )
          np.testing.assert_array_equal(
              epi["GeometricProcessing"]["TimeProcessing"], np.ones(10)
          )
  
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 TestHRITGOMSEpiFileHandler obj's underlying member method code with example usage: obj.test_init(new_fh_init, fromfile) without return types