#NEWLINE# def test_inside_exec( self ) : #NEWLINE# #INDENT# from zope.interface.advice import getFrameInfo #NEWLINE# _globals = { #NEWLINE# #INDENT# 'getFrameInfo' : getFrameInfo , #NEWLINE# #UNINDENT# } #NEWLINE# _locals = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# exec ( _FUNKY_EXEC , _globals , _locals ) #NEWLINE# self . assertEqual ( _locals [ 'kind' ] , 'exec' ) #NEWLINE# self . failUnless ( ( _locals [ 'f_locals' ] is _locals ) ) #NEWLINE# self . failUnless ( ( _locals [ 'module' ] is None ) ) #NEWLINE# self . failUnless ( ( _locals [ 'f_globals' ] is _globals ) )