#NEWLINE# def test_set_function_attr( self ) : #NEWLINE# #INDENT# def function( ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# inspection . callable_setattr ( function , 'foo' , True ) #NEWLINE# assert function . foo