def test_off_nadir_satellite_exactly_over(self): position_ecef = llh_to_ecef(0, 0, 500 * 1000) # A satellite exactly over the point velocity_ecef = (0, 0, 1) max_elevation_position = Position(None, position_ecef, velocity_ecef, None) pass_ = PredictedPass(sate_id=1, location=self.location, aos=None, los=None, duration_s=None, max_elevation_position=max_elevation_position, max_elevation_deg=None) self.assertAlmostEqual(pass_.off_nadir_deg, 0, delta=0.02)