'Test 1D array with func=np.mean.'

def test_1d_mean(self):

    data = np.arange(4)
    block_size = 2.0
    expected = (block_reduce(data, block_size, func=np.sum) / block_size)
    result_mean = block_reduce(data, block_size, func=np.mean)
    assert np.all((result_mean == expected))
