

def test_service_update(self):
    call_info = self._stub_rpc_method('call', 'fake_response')
    result = self.cells_rpcapi.service_update(self.fake_context, host_name='fake-host-name', binary='nova-api', params_to_update={
        'disabled': True,
    })
    expected_args = {
        'host_name': 'fake-host-name',
        'binary': 'nova-api',
        'params_to_update': {
            'disabled': True,
        },
    }
    self._check_result(call_info, 'service_update', expected_args, version='1.7')
    self.assertEqual('fake_response', result)

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