class_docstr: Test the NcNWCSAF reader for PPS products.
class_docstr_tok: ["Test","the","NcNWCSAF","reader","for","PPS","products","."]
docstr: Test that get_dataset() raises an error when the requested dataset is missing.
docstr_tok: ["Test","that","get_dataset","(",")","raises","an","error","when","the","requested","dataset","is","missing","."]
code: def test_get_dataset_raises_when_dataset_missing(
      self, nwcsaf_pps_cpp_filehandler
  ):
      """Test that get_dataset() raises an error when the requested dataset is missing."""
      dsid = {"name": "cpp_phase"}
      info = dict(name="cpp_phase", file_type="nc_nwcsaf_cpp")
      with pytest.raises(KeyError):
          nwcsaf_pps_cpp_filehandler.get_dataset(dsid, info)
  
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 7 for calling the TestNcNWCSAFPPS obj's underlying member method code with example usage: obj.test_get_dataset_raises_when_dataset_missing(nwcsaf_pps_cpp_filehandler) without return types