class_docstr: Test CLAVR-X Reader with Geo files.
class_docstr_tok: ["Test","CLAVR-X","Reader","with","Geo","files","."]
docstr: Test loading all test datasets with new donor.
docstr_tok: ["Test","loading","all","test","datasets","with","new","donor","."]
code: def test_load_all_new_donor(self, filenames, loadable_ids):
      """Test loading all test datasets with new donor."""
      from satpy.readers import load_reader
  
      with mock.patch("satpy.readers.clavrx.xr.open_dataset") as od:
          od.side_effect = fake_test_content
          r = load_reader(self.reader_configs)
          loadables = r.select_files_from_pathnames(filenames)
          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=6378137,
                  semi_minor_axis=6356752.3142,
                  perspective_point_height=35791000,
                  longitude_of_projection_origin=140.7,
                  sweep_angle_axis="y",
              )
              d.return_value = fake_donor = mock.MagicMock(
                  variables={
                      "goes_imager_projection": proj,
                      "x": x,
                      "y": y,
                  },
              )
              fake_donor.__getitem__.side_effect = (
                  lambda key: fake_donor.variables[key]
              )
              datasets = r.load(loadable_ids)
              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)
                  assert v.attrs["platform_name"] == "himawari8"
                  assert v.attrs["sensor"] == "ahi"
                  assert (
                      "rows_per_scan"
                      not in v.coords.get("longitude").attrs
                  )
                  if v.attrs["name"] in ["variable1", "variable2"]:
                      assert isinstance(v.attrs["valid_range"], list)
                      assert v.dtype == np.float32
                      assert "_FillValue" not in v.attrs.keys()
                  else:
                      assert (
                          datasets["variable3"].attrs.get(
                              "flag_meanings"
                          )
                      ) is not None
                      assert (
                          datasets["variable3"].attrs.get(
                              "flag_meanings"
                          )
                          == "<flag_meanings_unknown>"
                      )
                      assert np.issubdtype(v.dtype, np.integer)
  
file_path: satpy/satpy/tests/reader_tests/test_clavrx_nc.py
imports: import os
  from unittest import mock
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition
label_desc: Use image node_id 4 for calling the TestCLAVRXReaderGeo obj's underlying member method code with example usage: obj.test_load_all_new_donor(filenames, loadable_ids) without return types