def test_withStatementUndefinedInside():
    flakes('''
    from __future__ import with_statement
    with open('foo') as bar:
        baz
    ''', m.UndefinedName)
An undefined name warning is emitted if a name is used inside the body
dataset/ETHPy150Open timothycrosley/frosted/frosted/test/test_other.py/test_withStatementUndefinedInside