class_docstr: Test SEVIRI L1b HDF4 from ICARE Reader.
class_docstr_tok: ["Test","SEVIRI","L1b","HDF4","from","ICARE","Reader","."]
docstr: Check satellite name conversion is correct, including error case.
docstr_tok: ["Check","satellite","name","conversion","is","correct",",","including","error","case","."]
code: def test_sensor_names(self):
      """Check satellite name conversion is correct, including error case."""
      file_data = FakeHDF4FileHandler2.get_test_content(
          mock.MagicMock(),
          mock.MagicMock(),
          mock.MagicMock(),
          mock.MagicMock(),
      )
      sensor_list = {
          "Meteosat-08": "MSG1/SEVIRI",
          "Meteosat-09": "MSG2/SEVIRI",
          "Meteosat-10": "MSG3/SEVIRI",
          "Meteosat-11": "MSG4/SEVIRI",
      }
      with mock.patch(
          "satpy.tests.reader_tests.test_seviri_l1b_icare."
          "FakeHDF4FileHandler2.get_test_content"
      ) as patched_func:
  
          def _run_target():
              patched_func.return_value = file_data
              return self.p.target(
                  mock.MagicMock(), mock.MagicMock(), mock.MagicMock()
              ).sensor_name
  
          for sat in sensor_list:
              file_data["/attr/Sensors"] = sensor_list[sat]
              plat, sens = _run_target()
              assert plat == sat
  
          file_data["/attr/Sensors"] = "BADSAT/NOSENSE"
          with pytest.raises(NameError):
              plat, sens = _run_target()
  
imports: import os
  import unittest
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  from satpy.readers import load_reader
  from satpy.tests.reader_tests.test_hdf4_utils import FakeHDF4FileHandler
label_desc: Use image node_id 9 for calling the TestSEVIRIICAREReader obj's underlying member method code with example usage: obj.test_sensor_names() and returns: self