def test_object_interface_autopower(data, method, center_data, fit_bias):
    t, y, dy = data
    if method == 'scipy' and fit_bias:
        return
    if method == 'scipy':
        dy = None

    ls = LombScargle(t, y, dy, fit_bias=fit_bias, center_data=center_data)
    freq, PLS = ls.autopower(method=method)

    expected_PLS = lombscargle(t, y, dy, freq,
                               method=method,
                               fit_bias=fit_bias,
                               center_data=center_data)

    # TODO: test frequency output?
    assert_allclose(PLS, expected_PLS)