

def test_action_get_by_request_id(self):
    fake_instance = {
        'uuid': uuids.instance,
        'cell_name': 'region!child',
    }
    call_info = self._stub_rpc_method('call', 'fake_response')
    result = self.cells_rpcapi.action_get_by_request_id(self.fake_context, fake_instance, 'req-fake')
    expected_args = {
        'cell_name': 'region!child',
        'instance_uuid': fake_instance['uuid'],
        'request_id': 'req-fake',
    }
    self._check_result(call_info, 'action_get_by_request_id', expected_args, version='1.5')
    self.assertEqual('fake_response', result)

dataset/ETHPy150Open openstack/nova/nova/tests/unit/cells/test_cells_rpcapi.py CellsAPITestCase.test_action_get_by_request_id/original