class_docstr: Test the NcNWCSAF reader for PPS products.
class_docstr_tok: ["Test","the","NcNWCSAF","reader","for","PPS","products","."]
docstr: Test that get_dataset() uses a file_key if present.
docstr_tok: ["Test","that","get_dataset","(",")","uses","a","file_key","if","present","."]
code: def test_get_dataset_uses_file_key_if_present(
      self, nwcsaf_pps_cmic_filehandler, nwcsaf_pps_cpp_filehandler
  ):
      """Test that get_dataset() uses a file_key if present."""
      dsid_cpp = {"name": "cpp_cot"}
      dsid_cmic = {"name": "cmic_cot"}
  
      file_key = "cmic_cot"
  
      nwcsaf_pps_cmic_filehandler.file_key_prefix = ""
  
      info_cpp = dict(
          name="cpp_cot", file_key=file_key, file_type="nc_nwcsaf_cpp"
      )
  
      res_cpp = nwcsaf_pps_cmic_filehandler.get_dataset(
          dsid_cpp, info_cpp
      )
  
      info_cmic = dict(name="cmic_cot", file_type="nc_nwcsaf_cpp")
  
      res_cmic = nwcsaf_pps_cmic_filehandler.get_dataset(
          dsid_cmic, info_cmic
      )
      np.testing.assert_allclose(res_cpp, res_cmic)
  
imports: import h5netcdf
  import numpy
  import pytest
  import xarray
  from satpy.readers.nwcsaf_nc import NcNWCSAF, read_nwcsaf_time
label_desc: Use image node_id 8 for calling the TestNcNWCSAFPPS obj's underlying member method code with example usage: obj.test_get_dataset_uses_file_key_if_present(nwcsaf_pps_cmic_filehandler, nwcsaf_pps_cpp_filehandler) without return types