

def test_snapshot_instance(self):
    call_info = self._stub_rpc_method('cast', None)
    self.cells_rpcapi.snapshot_instance(self.fake_context, 'fake-instance', 'image-id')
    expected_args = {
        'instance': 'fake-instance',
        'image_id': 'image-id',
    }
    self._check_result(expected_args, 'snapshot_instance', expected_args, version='1.24')

dataset/ETHPy150Open openstack/nova/nova/tests/unit/cells/test_cells_rpcapi.py CellsAPITestCase.test_snapshot_instance/VarMisuse@56/95 `call_info`->`expected_args`