def test_validate_coord():
 result = conesearch._validate_coord(ICRS((6.02233 * u.degree), ((-72.08144) * u.degree)))
 np.testing.assert_allclose(result, [6.022330000000011, (-72.08144)])
 result = conesearch._validate_coord(SkyCoord((6.02233 * u.degree), ((-72.08144) * u.degree), frame=u'icrs'))
 np.testing.assert_allclose(result, [6.022330000000011, (-72.08144)])
 result = conesearch._validate_coord((0, 0))
 np.testing.assert_allclose(result, [0, 0])
 result = conesearch._validate_coord(((-1), (-1)))
 np.testing.assert_allclose(result, [359, (-1)])

def test_validate_coord ( ) : result = conesearch . _validate_coord ( ICRS ( ( 6.02233 * u . degree ) , ( ( - 72.08144 ) * u . degree ) ) ) np . testing . assert_allclose ( result , [ 6.022330000000011 , ( - 72.08144 ) ] ) result = conesearch . _validate_coord ( SkyCoord ( ( 6.02233 * u . degree ) , ( ( - 72.08144 ) * u . degree ) , frame = u'icrs' ) ) np . testing . assert_allclose ( result , [ 6.022330000000011 , ( - 72.08144 ) ] ) result = conesearch . _validate_coord ( ( 0 , 0 ) ) np . testing . assert_allclose ( result , [ 0 , 0 ] ) result = conesearch . _validate_coord ( ( ( - 1 ) , ( - 1 ) ) ) np . testing . assert_allclose ( result , [ 359 , ( - 1 ) ] )
valid coordinates should not raise an error .