

def test_bad_iterable(self):
    decorators = {myattr_dec_m, myattr2_dec_m}
    with self.assertRaisesMessage(TypeError, "'set' object"):

        @method_decorator(self, 'method')
        class TestIterable(object):

            def method(self):
                'A method'
                pass

dataset/ETHPy150Open django/django/tests/decorators/tests.py MethodDecoratorTests.test_bad_iterable/VarMisuse@34/55 `decorators`->`self`