#NEWLINE# def test_graphite( self ) : #NEWLINE# #INDENT# obj = Monitoring ( ) #NEWLINE# obj . engine = EngineEmul ( ) #NEWLINE# obj . parameters . merge ( { #NEWLINE# #INDENT# 'graphite' : [ { #NEWLINE# #INDENT# 'address' : 'people.com:1066' , #NEWLINE# 'label' : 'Earth' , #NEWLINE# 'metrics' : [ 'body' , 'brain' ] , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'address' : 'http://spirits.net' , #NEWLINE# 'metrics' : [ 'transparency' , 'usability' ] , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# obj . client_classes = { #NEWLINE# #INDENT# 'graphite' : GraphiteClientEmul , #NEWLINE# #UNINDENT# } #NEWLINE# obj . prepare ( ) #NEWLINE# obj . startup ( ) #NEWLINE# obj . check ( ) #NEWLINE# obj . clients [ 0 ] . check_time -= ( obj . clients [ 0 ] . interval * 2 ) #NEWLINE# obj . check ( ) #NEWLINE# obj . clients [ 0 ] . check_time -= ( obj . clients [ 0 ] . interval * 2 ) #NEWLINE# obj . clients [ 0 ] . prepared_data = 'wrong data' #NEWLINE# obj . check ( ) #NEWLINE# obj . shutdown ( ) #NEWLINE# obj . post_process ( )