#NEWLINE# def test_action_get_by_request_id( self ) : #NEWLINE# #INDENT# fake_uuid = fake_server_actions . FAKE_UUID #NEWLINE# fake_req_id = fake_server_actions . FAKE_REQUEST_ID1 #NEWLINE# fake_act = fake_server_actions . FAKE_ACTIONS [ fake_uuid ] [ fake_req_id ] #NEWLINE# self . mox . StubOutWithMock ( self . tgt_db_inst , 'action_get_by_request_id' ) #NEWLINE# self . tgt_db_inst . action_get_by_request_id ( self . ctxt , 'fake-uuid' , 'req-fake' ) . AndReturn ( fake_act ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# response = self . src_msg_runner . action_get_by_request_id ( self . ctxt , self . tgt_cell_name , 'fake-uuid' , 'req-fake' ) #NEWLINE# result = response . value_or_raise ( ) #NEWLINE# self . assertEqual ( jsonutils . to_primitive ( fake_act ) , result )