def test_as_angle(self): shape = [100, 200] * u.km aper = RectangularAperture(shape) eph = {'delta': 1 * u.au} assert all(aper.as_angle(eph).dim == rho_as_angle(shape, eph))