class_docstr: Test VIRR L1B Reader.
class_docstr_tok: ["Test","VIRR","L1B","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_method(self):
      """Wrap HDF5 file handler with our own fake handler."""
      from satpy._config import config_search_paths
      from satpy.readers.agri_l1 import HDF_AGRI_L1
      from satpy.readers.fy4_base import FY4Base
  
      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.fy4 = mock.patch.object(
          FY4Base, "__bases__", (FakeHDF5FileHandler2,)
      )
      self.p = mock.patch.object(HDF_AGRI_L1.__class__, (self.fy4,))
      self.fake_handler = self.fy4.start()
      self.p.is_local = True
      self.satname = "FY4A"
  
      self.expected = {
          1: np.array(
              [
                  [2.01, 2.02, 2.03, 2.04, 2.05],
                  [2.06, 2.07, 2.08, 2.09, 2.1],
              ]
          ),
          2: np.array(
              [
                  [4.03, 4.06, 4.09, 4.12, 4.15],
                  [4.18, 4.21, 4.24, 4.27, 4.3],
              ]
          ),
          3: np.array(
              [
                  [6.05, 6.1, 6.15, 6.2, 6.25],
                  [6.3, 6.35, 6.4, 6.45, 6.5],
              ]
          ),
          4: np.array(
              [
                  [8.07, 8.14, 8.21, 8.28, 8.35],
                  [8.42, 8.49, 8.56, 8.63, 8.7],
              ]
          ),
          5: np.array(
              [
                  [10.09, 10.18, 10.27, 10.36, 10.45],
                  [10.54, 10.63, 10.72, 10.81, 10.9],
              ]
          ),
          6: np.array(
              [
                  [12.11, 12.22, 12.33, 12.44, 12.55],
                  [12.66, 12.77, 12.88, 12.99, 13.1],
              ]
          ),
          7: np.array(
              [[0.2, 0.3, 0.4, 0.5, 0.6], [0.7, 0.8, 0.9, 1.0, np.nan]]
          ),
          8: np.array(
              [[0.2, 0.3, 0.4, 0.5, 0.6], [0.7, 0.8, 0.9, 1.0, np.nan]]
          ),
          9: np.array(
              [[0.2, 0.3, 0.4, 0.5, 0.6], [0.7, 0.8, 0.9, 1.0, np.nan]]
          ),
          10: np.array(
              [[0.2, 0.3, 0.4, 0.5, 0.6], [0.7, 0.8, 0.9, 1.0, np.nan]]
          ),
          11: np.array(
              [[0.2, 0.3, 0.4, 0.5, 0.6], [0.7, 0.8, 0.9, 1.0, np.nan]]
          ),
          12: np.array(
              [[0.2, 0.3, 0.4, 0.5, 0.6], [0.7, 0.8, 0.9, 1.0, np.nan]]
          ),
          13: np.array(
              [[0.2, 0.3, 0.4, 0.5, 0.6], [0.7, 0.8, 0.9, 1.0, np.nan]]
          ),
          14: np.array(
              [[0.2, 0.3, 0.4, 0.5, 0.6], [0.7, 0.8, 0.9, 1.0, np.nan]]
          ),
      }
  
imports: import os
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from satpy.tests.reader_tests.test_hdf5_utils import FakeHDF5FileHandler
label_desc: Use image node_id 1 for calling the Test_HDF_AGRI_L1_cal obj's underlying member method code with example usage: obj.setup_method() without return types