def test_2d_dat(self, backend, iterset, iterset2indset, x2):
        kernel_wo = "void kernel_wo(unsigned int* x) { x[0] = 42; x[1] = 43; }\n"
        op2.par_loop(op2.Kernel(kernel_wo, "kernel_wo"), iterset,
                     x2(op2.WRITE, iterset2indset[0]))
        assert all(all(v == [42, 43]) for v in x2.data)
Decorator for Django views that sends returned dict to render_to_response
dataset/ETHPy150Open OP2/PyOP2/test/unit/test_indirect_loop.py/TestIndirectLoop.test_2d_dat--crossover with--dataset/ETHPy150Open montylounge/django-sugar/sugar/views/decorators.py/render_to