#NEWLINE# def test_local_with_engine( self ) : #NEWLINE# #INDENT# config = { #NEWLINE# #INDENT# 'metrics' : [ 'cpu' , 'engine-loop' ] , #NEWLINE# #UNINDENT# } #NEWLINE# obj = LocalClient ( logging . getLogger ( '' ) , 'label' , config ) #NEWLINE# obj . engine = EngineEmul ( ) #NEWLINE# data = obj . get_data ( ) #NEWLINE# self . assertTrue ( all ( ( ( ( 'source' in item . keys ( ) ) and ( 'ts' in item . keys ( ) ) ) for item in data ) ) ) #NEWLINE# return data