

def test_stop_instance_cast(self):
    call_info = self._stub_rpc_method('cast', None)
    self.cells_rpcapi.stop_instance(self.fake_context, 'fake-instance', do_cast=True, clean_shutdown=True)
    expected_args = {
        'instance': 'fake-instance',
        'do_cast': True,
        'clean_shutdown': True,
    }
    self._check_result(call_info, 'stop_instance', expected_args, version='1.31')

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