class_docstr: Test the FY3D MERSI2 L1B reader.
docstr: Test loading data when all resolutions are available.
docstr_tok: ["Test","loading","data","when","all","resolutions","are","available","."]
code: def test_all_resolutions(self):
      """Test loading data when all resolutions are available."""
      from satpy.dataset.data_dict import get_key
      from satpy.readers import load_reader
      from satpy.tests.utils import make_dataid
  
      filenames = self.filenames_all
      reader = load_reader(self.reader_configs)
      files = reader.select_files_from_pathnames(filenames)
      assert 4 == len(files)
      reader.create_filehandlers(files)
      # Make sure we have some files
      assert reader.file_handlers
  
      # Verify that we have multiple resolutions for:
      #     - Bands 1-4 (visible)
      #     - Bands 24-25 (IR)
      available_datasets = reader.available_dataset_ids
      for band_name in ("1", "2", "3", "4", "24", "25"):
          if band_name in ("24", "25"):
              # don't know how to get radiance for IR bands
              num_results = 2
          else:
              num_results = 3
          ds_id = make_dataid(name=band_name, resolution=250)
          res = get_key(
              ds_id,
              available_datasets,
              num_results=num_results,
              best=False,
          )
          assert num_results == len(res)
          ds_id = make_dataid(name=band_name, resolution=1000)
          res = get_key(
              ds_id,
              available_datasets,
              num_results=num_results,
              best=False,
          )
          assert num_results == len(res)
  
      res = reader.load(["1", "2", "3", "4", "5", "20", "24", "25"])
      assert len(res) == 8
      assert res["5"].shape == (2 * 10, 2048)
      assert res["5"].attrs["calibration"] == "reflectance"
      assert res["5"].attrs["units"] == "%"
      assert res["20"].shape == (2 * 10, 2048)
      assert res["20"].attrs["calibration"] == "brightness_temperature"
      assert res["20"].attrs["units"] == "K"
      assert res["24"].shape == (2 * 40, 2048 * 2)
      assert res["24"].attrs["calibration"] == "brightness_temperature"
      assert res["24"].attrs["units"] == "K"
      assert res["25"].shape == (2 * 40, 2048 * 2)
      assert res["25"].attrs["calibration"] == "brightness_temperature"
      assert res["25"].attrs["units"] == "K"
  
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 TestMERSI2L1B obj's underlying member method code with example usage: obj.test_all_resolutions() without return types