#NEWLINE# def test_functiontype_from_globals( self ) : #NEWLINE# #INDENT# sm = type ( globals ( ) ) ( ) #NEWLINE# sm . update ( { #NEWLINE# #INDENT# 'xyz' : 789 , #NEWLINE# #UNINDENT# } ) #NEWLINE# sm_abc = types . FunctionType ( abc . func_code , self , abc . func_name , abc . func_defaults , abc . func_closure ) #NEWLINE# self . assertEquals ( sm_abc ( ) , 789 )