class_docstr: Test the AMI L1b reader.
class_docstr_tok: ["Test","the","AMI","L1b","reader","."]
docstr: Test the area generation.
docstr_tok: ["Test","the","area","generation","."]
code: def test_get_area_def(self, adef):
      """Test the area generation."""
      self.reader.get_area_def(None)
  
      assert adef.call_count == 1
      call_args = tuple(adef.call_args)[0]
      exp = {
          "a": 6378137.0,
          "b": 6356752.3,
          "h": 35785863.0,
          "lon_0": 128.2,
          "proj": "geos",
          "units": "m",
      }
      for key, val in exp.items():
          assert key in call_args[3]
          assert val == approx(call_args[3][key])
      assert call_args[4] == self.reader.nc.attrs["number_of_columns"]
      assert call_args[5] == self.reader.nc.attrs["number_of_lines"]
      np.testing.assert_allclose(
          call_args[6],
          [-5511022.902, -5511022.902, 5511022.902, 5511022.902],
      )
  
imports: import unittest
  from unittest import mock
  import dask.array
  import numpy
  import xarray
  from pytest import approx, raises
label_desc: Use image node_id 6 for calling the TestAMIL1bNetCDF obj's underlying member method code with example usage: obj.test_get_area_def(adef) without return types