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