def test_usedAsClassDecorator(self):
        self.flakes('''
        from interior import decorate
        @decorate
        class foo:
            pass
        ''')

        self.flakes('''
        from interior import decorate
        @decorate("foo")
        class bar:
            pass
        ''')

        self.flakes('''
        @decorate
        class foo:
            pass
        ''', m.UndefinedName)
Test writing a workbook with 2 worksheets.
dataset/ETHPy150Open kevinw/pyflakes/pyflakes/test/test_imports.py/Python26Tests.test_usedAsClassDecorator--crossover with--dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/workbook/test_workbook02.py/TestAssembleWorkbook.test_assemble_xml_file