class_docstr: Test various meris_nc_sen3 filehandlers.
class_docstr_tok: ["Test","various","meris_nc_sen3","filehandlers","."]
docstr: Test initialization of file handlers.
docstr_tok: ["Test","initialization","of","file","handlers","."]
code: def test_open_file_objects(self, mocked_open_dataset):
      """Test initialization of file handlers."""
      from satpy.readers.olci_nc import NCOLCIBase
  
      filename_info = {
          "mission_id": "ENV",
          "dataset_name": "M01",
          "start_time": 0,
          "end_time": 0,
      }
  
      open_file = mock.MagicMock()
  
      file_handler = NCOLCIBase(open_file, filename_info, "c")
      #  deepcode ignore W0104: This is a property that is actually a function call.
      file_handler.nc  # pylint: disable=W0104
      mocked_open_dataset.assert_called()
      open_file.open.assert_called()
      assert (
          open_file.open.return_value
          in mocked_open_dataset.call_args[0]
          or open_file.open.return_value
          == mocked_open_dataset.call_args[1].get("filename_or_obj")
      )
  
file_path: satpy/satpy/tests/reader_tests/test_meris_nc.py
imports: import unittest
  import unittest.mock
label_desc: Use image node_id 2 for calling the TestMERISReader obj's underlying member method code with example usage: obj.test_open_file_objects(mocked_open_dataset) without return types