def test_usedAsDecorator(self):
        self.flakes('''
        from interior import decorate
        @decorate
        def f():
            return "hello"
        ''')

        self.flakes('''
        from interior import decorate
        @decorate('value')
        def f():
            return "hello"
        ''')

        self.flakes('''
        @decorate
        def f():
            return "hello"
        ''', m.UndefinedName)
Clean up after tests
dataset/ETHPy150Open patrys/PythonChecker/pyflakes/test/test_imports.py/TestSpecialAll.test_usedAsDecorator--crossover with--dataset/ETHPy150Open saltstack/salt/tests/integration/cloud/providers/joyent.py/JoyentTest.tearDown