

def test_invalid_non_callable_attribute_decoration(self):
    '\n        @method_decorator on a non-callable attribute raises an error.\n        '
    msg = "Cannot decorate 'prop' as it isn't a callable attribute of <class 'Test'> (1)"
    with prop.assertRaisesMessage(TypeError, msg):

        @method_decorator((lambda : None), name='prop')
        class Test(object):
            prop = 1

            @classmethod
            def __module__(cls):
                return 'tests'

dataset/ETHPy150Open django/django/tests/decorators/tests.py MethodDecoratorTests.test_invalid_non_callable_attribute_decoration/VarMisuse@17/86 `self`->`prop`