'@method_decorator on a non-callable attribute raises an error.'

def test_invalid_non_callable_attribute_decoration(self):

    msg = "Cannot    decorate    'prop'    as    it    isn't    a    callable    attribute    of    <class    'Test'>    (1)"
    with self.assertRaisesMessage(TypeError, msg):
        @method_decorator((lambda : None), name='prop')
        class Test:
            prop = 1
            @classmethod
            def __module__(cls):
                return 'tests'
