'Runs `LevMarLSQFitter` and `SLSQPLSQFitter` on a model with
constraints.'

def test_LSQ_SLSQP_with_constraints(self):

    g1 = models.Gaussian1D(100, 5, stddev=1)
    g1.mean.fixed = True
    fitter = LevMarLSQFitter()
    fslsqp = SLSQPLSQFitter()
    with ignore_non_integer_warning():
        slsqp_model = fslsqp(g1, self.xdata, self.ydata)
    model = fitter(g1, self.xdata, self.ydata)
    assert_allclose(model.parameters, slsqp_model.parameters, rtol=(10 ** (-4)))
