class_docstr: Test the NC_ABI_L2 reader for the AOD product.
class_docstr_tok: ["Test","the","NC_ABI_L2","reader","for","the","AOD","product","."]
docstr: Test the area generation.
docstr_tok: ["Test","the","area","generation","."]
code: def test_get_area_def_xy(self, adef):
      """Test the area generation."""
      with _create_reader_for_fake_data(
          "RSR", self.fake_dataset
      ) as reader:
          reader.get_area_def(None)
  
      assert adef.call_count == 1
      call_args = tuple(adef.call_args)[0]
      assert call_args[3] == {
          "proj": "latlong",
          "a": 1.0,
          "b": 1.0,
          "fi": 1.0,
          "pm": 0.0,
          "lon_0": -75.0,
          "lat_0": 0.0,
      }
      assert call_args[4] == reader.ncols
      assert call_args[5] == reader.nlines
      np.testing.assert_allclose(
          call_args[6], (-85.0, -20.0, -65.0, 20)
      )
  
imports: import contextlib
  from typing import Optional
  from unittest import mock
  import numpy
  import pytest
  import xarray
label_desc: Use image node_id 2 for calling the Test_NC_ABI_L2_area_AOD obj's underlying member method code with example usage: obj.test_get_area_def_xy(adef) without return types