class_docstr: Main test class for the LI L2 reader.
class_docstr_tok: ["Main","test","class","for","the","LI","L2","reader","."]
docstr: Should automatically generate lat/lon coords from projection data.
docstr_tok: ["Should","automatically","generate","lat\/lon","coords","from","projection","data","."]
code: def test_coordinates_projection(self, filetype_infos):
      """Should automatically generate lat/lon coords from projection data."""
      handler = LIL2NCFileHandler(
          "filename",
          {},
          extract_filetype_info(filetype_infos, "li_l2_af_nc"),
      )
  
      dsid = make_dataid(name="flash_accumulation")
      dset = handler.get_dataset(dsid)
      assert "coordinates" in dset.attrs
  
      assert dset.attrs["coordinates"][0] == "longitude"
      assert dset.attrs["coordinates"][1] == "latitude"
  
      with pytest.raises(NotImplementedError):
          handler.get_area_def(dsid)
  
      handler = LIL2NCFileHandler(
          "filename",
          {},
          extract_filetype_info(filetype_infos, "li_l2_afr_nc"),
      )
  
      dsid = make_dataid(name="flash_radiance")
      dset = handler.get_dataset(dsid)
      assert "coordinates" in dset.attrs
  
      assert dset.attrs["coordinates"][0] == "longitude"
      assert dset.attrs["coordinates"][1] == "latitude"
  
      handler = LIL2NCFileHandler(
          "filename",
          {},
          extract_filetype_info(filetype_infos, "li_l2_afa_nc"),
      )
  
      dsid = make_dataid(name="accumulated_flash_area")
      dset = handler.get_dataset(dsid)
      assert "coordinates" in dset.attrs
  
      assert dset.attrs["coordinates"][0] == "longitude"
      assert dset.attrs["coordinates"][1] == "latitude"
  
imports: import os
  from datetime import datetime
  from unittest import mock
  import numpy
  import pytest
  import xarray
  from pyproj import Proj
  from satpy._config import config_search_paths
  from satpy.readers.li_base_nc import LINCFileHandler
  from satpy.readers.li_l2_nc import LI_GRID_SHAPE, LIL2NCFileHandler
  from satpy.readers.yaml_reader import load_yaml_configs
  from satpy.tests.reader_tests._li_test_utils import FakeLIFileHandlerBase, extract_filetype_info, get_product_schema, products_dict
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 23 for calling the TestLIL2 obj's underlying member method code with example usage: obj.test_coordinates_projection(filetype_infos) without return types