def test_class_decoration(self):
        def deco(func):
            def _wrapper(*args, **kwargs):
                return True
            return _wrapper

        @method_decorator(deco, name="method")
        class Test(object):
            def method(self):
                return False

        self.assertTrue(Test().method())
Set a Dat to a scalar value with op2.WRITE.
dataset/ETHPy150Open django/django/tests/decorators/tests.py/MethodDecoratorTests.test_class_decoration--crossover with--dataset/ETHPy150Open OP2/PyOP2/test/unit/test_direct_loop.py/TestDirectLoop.test_wo