#NEWLINE# def testCallStatusFuncs___set_status( self ) : #NEWLINE# #INDENT# ' IMStatus._set_status: calls functions within set_status_funcs.\n            ' #NEWLINE# ret_items = [ ] #NEWLINE# def _check_func( status , message ) : #NEWLINE# #INDENT# ret_items . append ( ( status , message ) ) #NEWLINE# #UNINDENT# self . plugin . set_status_funcs = ( _check_func , ret_items ) #NEWLINE# self . plugin . _set_status ( 'away' , 'message-here' ) #NEWLINE# for item in ret_items : #NEWLINE# #INDENT# self . assertEqual ( item , ( 'away' , 'message-here' ) )