class_docstr: Test CLAVR-X Reader with Polar files.
docstr: Test loading all test datasets.
docstr_tok: ["Test","loading","all","test","datasets","."]
code: def test_load_all(self):
      """Test loading all test datasets."""
      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_npp_d20170520_t2053581_e2055223_b28822.level2.hdf",
              ]
          )
          r.create_filehandlers(loadables)
  
      var_list = ["variable1", "variable2", "variable3"]
      datasets = r.load(var_list)
      assert len(datasets) == len(var_list)
      for v in datasets.values():
          assert v.attrs["units"] == "1"
          assert v.attrs["platform_name"] == "npp"
          assert v.attrs["sensor"] == "viirs"
          assert isinstance(v.attrs["area"], SwathDefinition)
          assert v.attrs["area"].lons.attrs["rows_per_scan"] == 16
          assert v.attrs["area"].lats.attrs["rows_per_scan"] == 16
          assert isinstance(
              datasets["variable3"].attrs.get("flag_meanings"), list
          )
  
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 TestCLAVRXReaderPolar obj's underlying member method code with example usage: obj.test_load_all() without return types