class_docstr: Test the NcNWCSAF reader for Geo products.
class_docstr_tok: ["Test","the","NcNWCSAF","reader","for","Geo","products","."]
docstr: Check that start/end times are in the attributes of datasets.
docstr_tok: ["Check","that","start\/end","times","are","in","the","attributes","of","datasets","."]
code: def test_times_are_in_dataset_attributes(
      self, nwcsaf_geo_ct_filehandler
  ):
      """Check that start/end times are in the attributes of datasets."""
      dsid = {"name": "ct"}
      var = nwcsaf_geo_ct_filehandler.get_dataset(dsid, {})
      assert "start_time" in var.attrs
      assert "end_time" in var.attrs
  
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 9 for calling the TestNcNWCSAFGeo obj's underlying member method code with example usage: obj.test_times_are_in_dataset_attributes(nwcsaf_geo_ct_filehandler) without return types