def METHOD_NAME(self):
    stencil = np.array([[[0, 0, 0],
                         [0, -1, 0],
                         [0, 0, 0]],
                        [[0, -1, 0],
                         [-1, 6, -1],
                         [0, -1, 0]],
                        [[0, 0, 0],
                         [0, -1, 0],
                         [0, 0, 0]]])
    cases = []
    cases.append(((1, 1, 1), np.array([[6]])))
    cases.append(((2, 1, 1), np.array([[6, -1],
                                       [-1, 6]])))
    cases.append(((2, 2, 1), np.array([[6, -1, -1, 0],
                                       [-1, 6, 0, -1],
                                       [-1, 0, 6, -1],
                                       [0, -1, -1, 6]])))
    cases.append(((2, 2, 2), np.array([[6, -1, -1, 0, -1, 0, 0, 0],
                                       [-1, 6, 0, -1, 0, -1, 0, 0],
                                       [-1, 0, 6, -1, 0, 0, -1, 0],
                                       [0, -1, -1, 6, 0, 0, 0, -1],
                                       [-1, 0, 0, 0, 6, -1, -1, 0],
                                       [0, -1, 0, 0, -1, 6, 0, -1],
                                       [0, 0, -1, 0, -1, 0, 6, -1],
                                       [0, 0, 0, -1, 0, -1, -1, 6]])))
    for grid, expected in cases:
        result = stencil_grid(stencil, grid).toarray()
        assert_equal(result, expected)