#NEWLINE# def test_context_relevant_specs( self ) : #NEWLINE# #INDENT# plugin_context = n_context . get_admin_context ( ) #NEWLINE# node_used = self . _create_profiled_servicechain_node ( service_type = 'LOADBALANCER' , config = self . DEFAULT_LB_CONFIG ) [ 'servicechain_node' ] #NEWLINE# spec_used = self . create_servicechain_spec ( nodes = [ node_used [ 'id' ] ] ) [ 'servicechain_spec' ] #NEWLINE# provider = self . create_policy_target_group ( ) [ 'policy_target_group' ] #NEWLINE# classifier = self . create_policy_classifier ( ) [ 'policy_classifier' ] #NEWLINE# instance = self . create_servicechain_instance ( provider_ptg_id = provider [ 'id' ] , classifier_id = classifier [ 'id' ] , servicechain_specs = [ spec_used [ 'id' ] ] ) [ 'servicechain_instance' ] #NEWLINE# ctx = ncp_context . get_node_driver_context ( self . plugin , plugin_context , plugin_context , node_used ) #NEWLINE# self . assertEqual ( [ spec_used [ 'id' ] ] , [ x [ 'id' ] for x in ctx . relevant_specs ] )