def METHOD_NAME(self):
    # Tests that autocorrelation measure is correct
    x = np.array([1, 2, 3, 4, -1, -1])
    y = pints._diagnostics.autocorrelation(x)
    y_true = np.array(
        [1., 0.21354167, -0.41666667, -0.296875, -0.03645833, 0.03645833])
    for i in range(0, len(x)):
        self.assertAlmostEqual(y[i], y_true[i])