def test_functionRedefinedAsClass():
    flakes('''
    def Foo():
        pass
    class Foo:
        pass
    ''', m.RedefinedWhileUnused)
If a function is redefined as a class, a warning is emitted.
dataset/ETHPy150Open timothycrosley/frosted/frosted/test/test_other.py/test_functionRedefinedAsClass