#NEWLINE# def test_add_process_using_plugin_list_and_filter( self ) : #NEWLINE# #INDENT# pluginmgr = server_plugins . PluginManager ( ** copy . deepcopy ( self . config ) ) #NEWLINE# plugin_list = [ 'Uname' , 'CpuLoad' ] #NEWLINE# filter_ = { #NEWLINE# #INDENT# 'Category' : 'system' , #NEWLINE# #UNINDENT# } #NEWLINE# expected_plugins = list ( ) #NEWLINE# for plugin in plugin_list : #NEWLINE# #INDENT# expected_plugins . append ( pluginmgr . get_plugin ( plugin ) ) #NEWLINE# #UNINDENT# expected_plugins += pluginmgr . get_plugins ( filter = filter_ ) #NEWLINE# process_id = pluginmgr . add_process ( plugins = added_process , filter = filter_ ) #NEWLINE# added_process = pluginmgr . get_process_list ( ) [ process_id ] [ 'plugins' ] #NEWLINE# assert ( expected_plugins == added_process )