

def test_get_host_uptime(self):
    call_info = self._stub_rpc_method('call', 'fake_response')
    result = self.cells_rpcapi.get_host_uptime(self.fake_context, host_name='fake-host-name')
    expected_args = {
        'host_name': 'fake-host-name',
    }
    self._check_result(call_info, 'get_host_uptime', expected_args, version='1.17')
    self.assertEqual('fake_response', result)

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