class_docstr: Test SEVIRI L2 BUFR Reader.
docstr: Test correctness of dataset attributes with data loaded with a AreaDefinition.
docstr_tok: ["Test","correctness","of","dataset","attributes","with","data","loaded","with","a","AreaDefinition","."]
code: def test_attributes_with_area_definition(input_file):
      """Test correctness of dataset attributes with data loaded with a AreaDefinition."""
      bufr_obj = SeviriL2BufrData(input_file, with_adef=True)
      _ = bufr_obj.get_data(
          DATASET_INFO_LAT
      )  # We need to load the lat/lon data in order to
      _ = bufr_obj.get_data(
          DATASET_INFO_LON
      )  # populate the file handler with these data
      z = bufr_obj.get_data(DATASET_INFO)
      assert z.attrs["platform_name"] == DATASET_ATTRS["platform_name"]
      assert z.attrs["ssp_lon"] == DATASET_ATTRS["ssp_lon"]
      assert z.attrs["seg_size"] == DATASET_ATTRS["seg_size"]
  
imports: import sys
  import unittest
  from datetime import datetime
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  from pyresample import geometry
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 3 for calling the TestSeviriL2BufrReader obj's underlying member method code with example usage: obj.test_attributes_with_area_definition(input_file) without return types