def test_redefinedFunction():
    flakes('''
    def a(): pass
    def a(): pass
    ''', m.RedefinedWhileUnused)
Test that shadowing a function definition with another one raises a warning.
dataset/ETHPy150Open timothycrosley/frosted/frosted/test/test_other.py/test_redefinedFunction