#NEWLINE# def test_get_service_plugin_by_path_prefix_3( self ) : #NEWLINE# #INDENT# cfg . CONF . set_override ( 'core_plugin' , DB_PLUGIN_KLASS ) #NEWLINE# nm = manager . NeutronManager . get_instance ( ) #NEWLINE# class pclass ( object ) : #NEWLINE# #INDENT# def __init__( self , path_prefix ) : #NEWLINE# #INDENT# self . path_prefix = path_prefix #NEWLINE# #UNINDENT# #UNINDENT# ( x_plugin , y_plugin ) = ( pclass ( 'xpa' ) , pclass ( 'ypa' ) ) #NEWLINE# ( nm . service_plugins [ 'x' ] , nm . service_plugins [ 'y' ] ) = ( x_plugin , y_plugin ) #NEWLINE# self . assertEqual ( weakref . proxy ( x_plugin ) , nm . get_service_plugin_by_path_prefix ( 'xpa' ) ) #NEWLINE# self . assertEqual ( weakref . proxy ( y_plugin ) , nm . get_service_plugin_by_path_prefix ( 'ypa' ) ) #NEWLINE# self . assertIsNone ( nm . get_service_plugin_by_path_prefix ( 'abc' ) )