def test_agg_autocorrelation_returns_max_lag_does_not_affect_other_results(self):

        param = [{"f_agg": "mean", "maxlag": 1}, {"f_agg": "mean", "maxlag": 10}]
        x = range(10)
        res1 = dict(agg_autocorrelation(x, param=param))['f_agg_"mean"__maxlag_1']
        res10 = dict(agg_autocorrelation(x, param=param))['f_agg_"mean"__maxlag_10']
        self.assertAlmostEqual(res1, 0.77777777, places=4)
        self.assertAlmostEqual(res10, -0.64983164983165, places=4)

        param = [{"f_agg": "mean", "maxlag": 1}]
        x = range(10)
        res1 = dict(agg_autocorrelation(x, param=param))['f_agg_"mean"__maxlag_1']
        self.assertAlmostEqual(res1, 0.77777777, places=4)