class_docstr: Test OMPS EDR Reader.
class_docstr_tok: ["Test","OMPS","EDR","Reader","."]
docstr: Wrap HDF5 file handler with our own fake handler.
docstr_tok: ["Wrap","HDF5","file","handler","with","our","own","fake","handler","."]
code: def setUp(self):
      """Wrap HDF5 file handler with our own fake handler."""
      from satpy._config import config_search_paths
      from satpy.readers.omps_edr import (
          EDREOSFileHandler,
          EDRFileHandler,
      )
  
      self.reader_configs = config_search_paths(
          os.path.join("readers", self.yaml_file)
      )
      # http://stackoverflow.com/questions/12219967/how-to-mock-a-base-class-with-python-mock-library
      self.p = mock.patch.object(
          EDRFileHandler, "__bases__", (FakeHDF5FileHandler2,)
      )
      self.fake_handler = self.p.start()
      self.p.is_local = True
      self.p2 = mock.patch.object(
          EDREOSFileHandler, "__bases__", (EDRFileHandler,)
      )
      self.fake_handler2 = self.p2.start()
      self.p2.is_local = True
  
file_path: satpy/satpy/tests/reader_tests/test_omps_edr.py
imports: import os
  import unittest
  from unittest import mock
  import numpy
  from satpy.tests.reader_tests.test_hdf5_utils import FakeHDF5FileHandler
  from satpy.tests.utils import convert_file_content_to_data_array
label_desc: Use image node_id 1 for calling the TestOMPSEDRReader obj's underlying member method code with example usage: obj.setUp() without return types