'Test 2D array.'

def test_2d(self):

    data = np.arange(2).reshape(2, 1)
    expected = np.array([[0, 0], [0, 0], [0.25, 0.25], [0.25, 0.25]])
    result = block_replicate(data, 2)
    assert np.all((result == expected))
