def test_angsep():
 from ..angle_utilities import angular_separation
 for conv in (np.deg2rad, (lambda x: u.Quantity(x, u'deg')), (lambda x: Angle(x, u'deg'))):
  for ((lon1, lat1, lon2, lat2), corrsep) in zip(coords, correct_seps):
   angsep = angular_separation(conv(lon1), conv(lat1), conv(lon2), conv(lat2))
   assert (np.fabs((angsep - conv(corrsep))) < conv(correctness_margin))

def test_angsep ( ) : from . . angle_utilities import angular_separation for conv in ( np . deg2rad , ( lambda x : u . Quantity ( x , u'deg' ) ) , ( lambda x : Angle ( x , u'deg' ) ) ) : for ( ( lon1 , lat1 , lon2 , lat2 ) , corrsep ) in zip ( coords , correct_seps ) : angsep = angular_separation ( conv ( lon1 ) , conv ( lat1 ) , conv ( lon2 ) , conv ( lat2 ) ) assert ( np . fabs ( ( angsep - conv ( corrsep ) ) ) < conv ( correctness_margin ) )
tests that the angular separation object also behaves correctly .