def METHOD_NAME(self, units, overlap):
    radius = 4
    depth = ImageDepth(radius, nsigma=5.0, napers=100, niters=2,
                       overlap=overlap, seed=123, zeropoint=23.9,
                       progress_bar=False)
    if overlap:
        exp_limits = (66.60324687694235, 19.341261496655026)
    else:
        exp_limits = (67.65345151009167, 19.324275104703975)
    data = self.data
    fluxlim = exp_limits[0]
    if units:
        data = self.data * u.Jy
        fluxlim *= u.Jy
    limits = depth(data, self.mask)
    assert_allclose(limits[1], exp_limits[1])
    if not units:
        assert_allclose(limits[0], fluxlim)
    else:
        assert_quantity_allclose(limits[0], fluxlim)