class_docstr: Test interpolation of orbit and attitude predictions.
class_docstr_tok: ["Test","interpolation","of","orbit","and","attitude","predictions","."]
docstr: Test nearest neighbour interpolation.
docstr_tok: ["Test","nearest","neighbour","interpolation","."]
code: def test_interpolate_nearest(self, obs_time, expected):
      """Test nearest neighbour interpolation."""
      prediction_times = np.array([0, 1, 2])
      predicted_angles = np.array(
          [np.zeros((2, 2)), np.diag((1, 2)), np.zeros((2, 2))]
      )
      res = nav.interpolate_nearest(
          obs_time, prediction_times, predicted_angles
      )
      np.testing.assert_allclose(res, expected)
  
imports: import numpy
  import pytest
  from satpy.tests.reader_tests.utils import get_jit_methods, skip_numba_unstable_if_missing
label_desc: Use image node_id 3 for calling the TestPredictionInterpolation obj's underlying member method code with example usage: obj.test_interpolate_nearest(obs_time, expected) without return types