#NEWLINE# def test_create_listening_endpoint( self ) : #NEWLINE# #INDENT# self . patch_cfg ( 'pyon.container.procs.CFG' , { #NEWLINE# #INDENT# 'container' : { #NEWLINE# #INDENT# 'messaging' : { #NEWLINE# #INDENT# 'endpoint' : { #NEWLINE# #INDENT# 'proc_listening_type' : 'pyon.container.test.test_procs.TestRPCServer' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# fakecc = FakeContainer ( ) #NEWLINE# fakecc . resource_registry = Mock ( ) #NEWLINE# fakecc . resource_registry . create . return_value = [ 'ID' , 'rev' ] #NEWLINE# pm = ProcManager ( fakecc ) #NEWLINE# ep = pm . _create_listening_endpoint ( node = sentinel . node , service = sentinel . service , process = sentinel . process ) #NEWLINE# self . assertIsInstance ( ep , TestRPCServer )