def test_distance_comparison():
 a = Distance((15 * u.kpc))
 b = Distance((15 * u.kpc))
 assert (a == b)
 c = Distance((1.0 * u.Mpc))
 assert (a < c)

def test_distance_comparison ( ) : a = Distance ( ( 15 * u . kpc ) ) b = Distance ( ( 15 * u . kpc ) ) assert ( a == b ) c = Distance ( ( 1.0 * u . Mpc ) ) assert ( a < c )
ensure comparisons of distances work .