class_docstr: Test HSAF Reader.
class_docstr_tok: ["Test","HSAF","Reader","."]
docstr: Test the area definition setup, checks the size and extent.
docstr_tok: ["Test","the","area","definition","setup",",","checks","the","size","and","extent","."]
code: def test_get_area_def(self, pg):
      """Test the area definition setup, checks the size and extent."""
      pg.open.return_value = FakeGRIB()
      from satpy.readers.hsaf_grib import HSAFFileHandler
  
      fh = HSAFFileHandler(
          "filename", mock.MagicMock(), mock.MagicMock()
      )
      area_def = HSAFFileHandler.get_area_def(fh, "H03B")
      assert area_def.width == 3712
      assert area_def.area_extent[0] == approx(-5569209.3026, abs=1e-3)
      assert area_def.area_extent[3] == approx(5587721.9097, abs=1e-3)
  
imports: import sys
  import unittest
  from datetime import datetime
  from unittest import mock
  import numpy
  from pytest import approx
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 4 for calling the TestHSAFFileHandler obj's underlying member method code with example usage: obj.test_get_area_def(pg) without return types