#NEWLINE# def test_CollectBoundVariablesInScope_functionDef( self ) : #NEWLINE# #INDENT# tree = ast . parse ( textwrap . dedent ( '\n                v0 = z\n                def f(x):\n                    v1\n                    v2 = 2\n                    v3 += 3\n                    (v4, v5), v6 = w\n                v7 = zz\n                ' ) ) #NEWLINE# self . assertEqual ( set ( [ 'v0' , 'v7' ] ) , PyAstFreeVariableAnalyses . collectBoundVariablesInScope ( tree ) ) #NEWLINE# self . assertEqual ( set ( [ 'f' ] ) , PyAstFreeVariableAnalyses . collectBoundNamesInScope ( tree ) )