def test_object_interface_power(data, method, center_data, fit_bias, freq):
    t, y, dy = data
    if method == 'scipy' and fit_bias:
        return
    if method == 'scipy':
        dy = None
    expected_PLS = lombscargle(t, y, dy,
                               frequency=freq,
                               method=method,
                               fit_bias=fit_bias,
                               center_data=center_data)
    ls = LombScargle(t, y, dy, fit_bias=fit_bias, center_data=center_data)
    PLS = ls.power(freq, method=method)
    assert_allclose(PLS, expected_PLS)