

def test_reboot_instance(self):
    call_info = self._stub_rpc_method('cast', None)
    self.cells_rpcapi.reboot_instance(self.fake_context, 'fake-instance', block_device_info='ignored', reboot_type='HARD')
    expected_args = {
        'instance': 'fake-instance',
        'reboot_type': 'HARD',
    }
    self._check_result(call_info, 'reboot_instance', expected_args, version='1.14')

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