

def test_bw_usage_update_at_top(self):
    update_args = ('fake_uuid', 'fake_mac', 'fake_start_period', 'fake_bw_in', 'fake_bw_out', 'fake_ctr_in', 'fake_ctr_out')
    update_kwargs = {
        'last_refreshed': 'fake_refreshed',
    }
    call_info = self._stub_rpc_method('cast', None)
    self.cells_rpcapi.bw_usage_update_at_top(self.fake_context, *update_args, **update_kwargs)
    bw_update_info = {
        'uuid': 'fake_uuid',
        'mac': 'fake_mac',
        'start_period': 'fake_start_period',
        'bw_in': 'fake_bw_in',
        'bw_out': 'fake_bw_out',
        'last_ctr_in': 'fake_ctr_in',
        'last_ctr_out': 'fake_ctr_out',
        'last_refreshed': 'fake_refreshed',
    }
    expected_args = {
        'bw_update_info': bw_update_info,
    }
    self._check_result(update_kwargs, 'bw_usage_update_at_top', expected_args)

dataset/ETHPy150Open openstack/nova/nova/tests/unit/cells/test_cells_rpcapi.py CellsAPITestCase.test_bw_usage_update_at_top/VarMisuse@128/305 `call_info`->`update_kwargs`