class_docstr: Test various meris_nc_sen3 filehandlers.
class_docstr_tok: ["Test","various","meris_nc_sen3","filehandlers","."]
docstr: Test reading datasets.
docstr_tok: ["Test","reading","datasets","."]
code: def test_meris_angles(self, mocked_dataset):
      """Test reading datasets."""
      import numpy as np
      import xarray as xr
  
      from satpy.readers.meris_nc_sen3 import NCMERISAngles
      from satpy.tests.utils import make_dataid
  
      attr_dict = {
          "ac_subsampling_factor": 1,
          "al_subsampling_factor": 2,
      }
      mocked_dataset.return_value = xr.Dataset(
          {
              "SAA": (
                  ["tie_rows", "tie_columns"],
                  np.array([1 << x for x in range(30)]).reshape(5, 6),
              ),
              "SZA": (
                  ["tie_rows", "tie_columns"],
                  np.array([1 << x for x in range(30)]).reshape(5, 6),
              ),
              "OAA": (
                  ["tie_rows", "tie_columns"],
                  np.array([1 << x for x in range(30)]).reshape(5, 6),
              ),
              "OZA": (
                  ["tie_rows", "tie_columns"],
                  np.array([1 << x for x in range(30)]).reshape(5, 6),
              ),
          },
          coords={"rows": np.arange(5), "columns": np.arange(6)},
          attrs=attr_dict,
      )
      filename_info = {
          "mission_id": "ENV",
          "dataset_name": "M01",
          "start_time": 0,
          "end_time": 0,
      }
  
      ds_id = make_dataid(name="solar_azimuth_angle")
      ds_id2 = make_dataid(name="satellite_zenith_angle")
      test = NCMERISAngles("somedir/somefile.nc", filename_info, "c")
      test.get_dataset(ds_id, filename_info)
      test.get_dataset(ds_id2, filename_info)
      mocked_dataset.assert_called()
      mocked_dataset.reset_mock()
  
file_path: satpy/satpy/tests/reader_tests/test_meris_nc.py
imports: import unittest
  import unittest.mock
label_desc: Use image node_id 4 for calling the TestMERISReader obj's underlying member method code with example usage: obj.test_meris_angles(mocked_dataset) without return types