class_docstr: Test CLAVR-X Reader with Geo files.
docstr: Test loading all test datasets with old donor.
docstr_tok: ["Test","loading","all","test","datasets","with","old","donor","."]
code: def test_load_all_old_donor(self):
      """Test loading all test datasets with old donor."""
      import xarray as xr
  
      from satpy.readers import load_reader
  
      r = load_reader(self.reader_configs)
      with mock.patch("satpy.readers.clavrx.SDS", xr.DataArray):
          loadables = r.select_files_from_pathnames(
              [
                  "clavrx_H08_20180806_1800.level2.hdf",
              ]
          )
          r.create_filehandlers(loadables)
      with mock.patch("satpy.readers.clavrx.glob") as g, mock.patch(
          "satpy.readers.clavrx.netCDF4.Dataset"
      ) as d:
          g.return_value = ["fake_donor.nc"]
          x = np.linspace(-0.1518, 0.1518, 300)
          y = np.linspace(0.1518, -0.1518, 10)
          proj = mock.Mock(
              semi_major_axis=6378.137,
              semi_minor_axis=6356.7523142,
              perspective_point_height=35791,
              longitude_of_projection_origin=140.7,
              sweep_angle_axis="y",
          )
          d.return_value = fake_donor = mock.MagicMock(
              variables={"Projection": proj, "x": x, "y": y},
          )
          fake_donor.__getitem__.side_effect = (
              lambda key: fake_donor.variables[key]
          )
          datasets = r.load(["variable1", "variable2", "variable3"])
      assert len(datasets) == 3
      for v in datasets.values():
          assert "calibration" not in v.attrs
          assert v.attrs["units"] == "1"
          assert isinstance(v.attrs["area"], AreaDefinition)
          if v.attrs.get("flag_values"):
              assert "_FillValue" in v.attrs
          else:
              assert "_FillValue" not in v.attrs
          if v.attrs["name"] == "variable1":
              assert isinstance(v.attrs["valid_range"], list)
          else:
              assert "valid_range" not in v.attrs
          if "flag_values" in v.attrs:
              assert np.issubdtype(v.dtype, np.integer)
              assert v.attrs.get("flag_meanings") is not None
  
imports: import os
  import unittest
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition, SwathDefinition
  from satpy.tests.reader_tests.test_hdf4_utils import FakeHDF4FileHandler
label_desc: Use image node_id 5 for calling the TestCLAVRXReaderGeo obj's underlying member method code with example usage: obj.test_load_all_old_donor() without return types