

def test_get_capacities(self):
    capacity_info = {
        'capacity': 'info',
    }
    call_info = self._stub_rpc_method('call', result=capacity_info)
    result = self.cells_rpcapi.get_capacities(self.fake_context, cell_name='name')
    self._check_result(call_info, 'get_capacities', {
        'cell_name': 'name',
    }, version='1.9')
    self.assertEqual(capacity_info, capacity_info)

dataset/ETHPy150Open openstack/nova/nova/tests/unit/cells/test_cells_rpcapi.py CellsAPITestCase.test_get_capacities/VarMisuse@79/127 `result`->`capacity_info`