def test_3d_separations():
 c1 = ICRS(ra=(1 * u.deg), dec=(1 * u.deg), distance=(9 * u.kpc))
 c2 = ICRS(ra=(1 * u.deg), dec=(1 * u.deg), distance=(10 * u.kpc))
 sep3d = c2.separation_3d(c1)
 assert isinstance(sep3d, Distance)
 assert_allclose((sep3d - (1 * u.kpc)), (0 * u.kpc), atol=(1e-12 * u.kpc))

def test_3d_separations ( ) : c1 = ICRS ( ra = ( 1 * u . deg ) , dec = ( 1 * u . deg ) , distance = ( 9 * u . kpc ) ) c2 = ICRS ( ra = ( 1 * u . deg ) , dec = ( 1 * u . deg ) , distance = ( 10 * u . kpc ) ) sep3d = c2 . separation_3d ( c1 ) assert isinstance ( sep3d , Distance ) assert_allclose ( ( sep3d - ( 1 * u . kpc ) ) , ( 0 * u . kpc ) , atol = ( 1e-12 * u . kpc ) )
test 3d separation functionality .