def METHOD_NAME(self):
    data = spectra_table([0, 1, 2, 3],
                         [[1.0, 2.0, 1.0, 1.0],
                          [3.0, 5.0, 3.0, 3.0]])
    f = EMSC(reference=data[0:1], order=2, output_model=True)
    noweights = f(data)
    # table obtained by now-removed ranges_to_weight_table([(0, 3, 1)])
    weight_table = spectra_table([-5e-324, 0.0, 3.0, 3.0000000000000004],
                                 [[0, 1, 1, 0]])
    f = EMSC(reference=data[0:1], order=2, output_model=True, weights=weight_table)
    weights = f(data)
    np.testing.assert_equal(weights.X, noweights.X)
    f = EMSC(reference=data[0:1], order=2, output_model=True,
             weights=SelectionFunction(0, 3, 1))
    weights = f(data)
    np.testing.assert_equal(weights.X, noweights.X)