class_docstr: Test CLAVR-X Reader with Geo files.
class_docstr_tok: ["Test","CLAVR-X","Reader","with","Geo","files","."]
docstr: Test that variables are dynamically discovered.
docstr_tok: ["Test","that","variables","are","dynamically","discovered","."]
code: def test_available_datasets(self, filenames, expected_datasets):
      """Test that variables are dynamically discovered."""
      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)
          avails = list(r.available_dataset_names)
          for var_name in expected_datasets:
              assert var_name in avails
  
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 3 for calling the TestCLAVRXReaderGeo obj's underlying member method code with example usage: obj.test_available_datasets(filenames, expected_datasets) without return types