def test_actual_results(X, params):
    """Test that the actual results are the expected ones."""
    arr_actual = DiscreteFourierTransform(**params).fit_transform(X, y)
    arr_desired = _compute_expected_results(X, y, **params)
    np.testing.assert_array_equal(arr_actual, arr_desired)
Test that the actual results are the expected ones.
pyts/approximation/tests/test_dft.py