class_docstr: Test the NcNWCSAF reader when using a file key prefix.
class_docstr_tok: ["Test","the","NcNWCSAF","reader","when","using","a","file","key","prefix","."]
docstr: Test that get_dataset() uses a file_key_prefix.
docstr_tok: ["Test","that","get_dataset","(",")","uses","a","file_key_prefix","."]
code: def test_get_dataset_uses_file_key_prefix(
      self, nwcsaf_pps_cmic_filehandler
  ):
      """Test that get_dataset() uses a file_key_prefix."""
      dsid_cpp = {"name": "cpp_cot"}
      dsid_cmic = {"name": "cmic_cot"}
  
      file_key = "cot"
  
      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 1 for calling the TestNcNWCSAFFileKeyPrefix obj's underlying member method code with example usage: obj.test_get_dataset_uses_file_key_prefix(nwcsaf_pps_cmic_filehandler) without return types