class_docstr: Tests for the AHI HSD file handler.
class_docstr_tok: ["Tests","for","the","AHI","HSD","file","handler","."]
docstr: Test that rounding of the actual satellite position can be controlled.
docstr_tok: ["Test","that","rounding","of","the","actual","satellite","position","can","be","controlled","."]
code: def test_actual_satellite_position(
      self, round_actual_position, expected_result
  ):
      """Test that rounding of the actual satellite position can be controlled."""
      with _fake_hsd_handler(
          fh_kwargs={"round_actual_position": round_actual_position}
      ) as fh:
          ds_id = make_dataid(name="B01", resolution=1000)
          ds_info = {
              "units": "%",
              "standard_name": "some_name",
              "wavelength": (0.1, 0.2, 0.3),
              "resolution": 1000,
          }
          metadata = fh._get_metadata(ds_id, ds_info)
          orb_params = metadata["orbital_parameters"]
          assert (
              orb_params["satellite_actual_longitude"]
              == expected_result[0]
          )
          assert (
              orb_params["satellite_actual_latitude"]
              == expected_result[1]
          )
          assert (
              orb_params["satellite_actual_altitude"]
              == expected_result[2]
          )
  
imports: from __future__ import annotations
  import contextlib
  import unittest
  import warnings
  from datetime import datetime
  from typing import Any, Dict
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  from satpy.readers.ahi_hsd import AHIHSDFileHandler
  from satpy.readers.utils import get_geostationary_mask
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 2 for calling the TestAHIHSDFileHandler obj's underlying member method code with example usage: obj.test_actual_satellite_position(round_actual_position, expected_result) without return types