def test_magnification_general(objdist): efl = 1 result = thinlens.object_dist_to_mag(efl, objdist) assert result != np.nan assert result != np.inf
def test_magnification_unity_case(): efl = 1 objdist = 2 assert thinlens.object_dist_to_mag(efl, objdist) == -1