class_docstr: Test the Ocean Color reader.
class_docstr_tok: ["Test","the","Ocean","Color","reader","."]
docstr: Test area definition.
docstr_tok: ["Test","area","definition","."]
code: def test_get_area_def(self, area_exp, fake_file_dict):
      """Test area definition."""
      import warnings
  
      reader = self._create_reader_for_resolutions(
          [fake_file_dict["ocprod_1m"]]
      )
      res = reader.load([ds_list_all[0]])
      area = res[ds_list_all[0]].attrs["area"]
  
      assert area.area_id == area_exp.area_id
      assert area.area_extent == area_exp.area_extent
      assert area.width == area_exp.width
      assert area.height == area_exp.height
      with warnings.catch_warnings():
          warnings.filterwarnings(
              "ignore",
              message=r"You will likely lose important projection information",
              category=UserWarning,
          )
          # The corresponding CRS objects do not match even if the proj dicts match, so use the dicts
          assert area.proj_dict == area_exp.proj_dict
  
imports: import os
  from datetime import datetime
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition
label_desc: Use image node_id 4 for calling the TestOCCCIReader obj's underlying member method code with example usage: obj.test_get_area_def(area_exp, fake_file_dict) without return types