def test_inequality():
 lu1 = u.mag(u.Jy)
 lu2 = u.dex(u.Jy)
 lu3 = u.mag((u.Jy ** 2))
 lu4 = (lu3 - lu1)
 assert (lu1 != lu2)
 assert (lu1 != lu3)
 assert (lu1 == lu4)

def test_inequality ( ) : lu1 = u . mag ( u . Jy ) lu2 = u . dex ( u . Jy ) lu3 = u . mag ( ( u . Jy ** 2 ) ) lu4 = ( lu3 - lu1 ) assert ( lu1 != lu2 ) assert ( lu1 != lu3 ) assert ( lu1 == lu4 )
check __ne__ works .