#NEWLINE# def test_proxy_rpc_to_manager_cast( self ) : #NEWLINE# #INDENT# fake_topic = 'fake-topic' #NEWLINE# fake_rpc_message = { #NEWLINE# #INDENT# 'method' : 'fake_rpc_method' , #NEWLINE# 'args' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# fake_host_name = 'fake-host-name' #NEWLINE# self . mox . StubOutWithMock ( objects . Service , 'get_by_compute_host' ) #NEWLINE# objects . Service . get_by_compute_host ( self . ctxt , fake_host_name ) #NEWLINE# target = oslo_messaging . Target ( topic = 'fake-topic' ) #NEWLINE# rpcclient = self . mox . CreateMockAnything ( ) #NEWLINE# self . mox . StubOutWithMock ( rpc , 'get_client' ) #NEWLINE# rpc . get_client ( target ) . AndReturn ( rpcclient ) #NEWLINE# rpcclient . cast ( mox . IgnoreArg ( ) , 'fake_rpc_method' ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . src_msg_runner . proxy_rpc_to_manager ( self . ctxt , self . tgt_cell_name , fake_host_name , fake_topic , fake_rpc_message , False , timeout = None )