def METHOD_NAME(self):
    # Same as before, but now force the fit to goo
    # beyond the image frame limits.
    g = EllipseGeometry(POS + 5, POS + 5, 10.0, eps=0.2, pa=PA, astep=0.1)
    ellipse = Ellipse(OFFSET_GALAXY, geometry=g)
    isophote_list = ellipse.fit_image(maxsma=400.0)
    # the fit should go to maxsma, but with fixed geometry
    assert len(isophote_list) == 71
    assert isophote_list[-1].stop_code == 4
    # check that no zero-valued intensities were left behind
    # in the sample arrays when sampling outside the image.
    for iso in isophote_list:
        assert not np.any(iso.sample.values[2] == 0)