class_docstr: Test the HRITJMAFileHandler.
class_docstr_tok: ["Test","the","HRITJMAFileHandler","."]
docstr: Test platform identification.
docstr_tok: ["Test","platform","identification","."]
code: def test_get_platform(self, mocked_init):
      """Test platform identification."""
      from satpy.readers.hrit_jma import (
          PLATFORMS,
          UNKNOWN_PLATFORM,
          HRITJMAFileHandler,
      )
  
      mocked_init.return_value = None
      reader = HRITJMAFileHandler()
  
      for proj_name, platform in PLATFORMS.items():
          reader.projection_name = proj_name
          assert reader._get_platform() == platform
  
      with mock.patch("logging.Logger.error") as mocked_log:
          reader.projection_name = "invalid"
          assert reader._get_platform() == UNKNOWN_PLATFORM
          mocked_log.assert_called()
  
imports: import unittest
  from unittest import mock
  import dask.array
  import numpy
  from xarray import DataArray
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 5 for calling the TestHRITJMAFileHandler obj's underlying member method code with example usage: obj.test_get_platform(mocked_init) without return types