class_docstr: Test the filehandler.
class_docstr_tok: ["Test","the","filehandler","."]
docstr: Test getting the platform name.
docstr_tok: ["Test","getting","the","platform","name","."]
code: def test_platform_name(self):
      """Test getting the platform name."""
      with tempfile.TemporaryFile() as tmpfile:
          self._header.tofile(tmpfile)
          tmpfile.seek(HEADER_LENGTH, 0)
          self._data.tofile(tmpfile)
  
          fh_ = MHS_AMSUB_AAPPL1CFile(
              tmpfile, self.filename_info, self.filetype_info
          )
  
      assert fh_.platform_name == "Metop-C"
  
      self._header["satid"][0] = 1
      with tempfile.TemporaryFile() as tmpfile:
          self._header.tofile(tmpfile)
          tmpfile.seek(HEADER_LENGTH, 0)
          self._data.tofile(tmpfile)
  
          fh_ = MHS_AMSUB_AAPPL1CFile(
              tmpfile, self.filename_info, self.filetype_info
          )
  
      assert fh_.platform_name == "Metop-B"
  
file_path: satpy/satpy/tests/reader_tests/test_aapp_mhs_amsub_l1c.py
imports: import datetime
  import tempfile
  import unittest
  import numpy
  import pytest
  from satpy.readers.aapp_mhs_amsub_l1c import _HEADERTYPE, _SCANTYPE, HEADER_LENGTH, MHS_AMSUB_AAPPL1CFile
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 2 for calling the TestMHS_AMSUB_AAPPL1CReadData obj's underlying member method code with example usage: obj.test_platform_name() without return types