

def test_backup_instance(self):
    call_info = self._stub_rpc_method('cast', None)
    self.cells_rpcapi.backup_instance(self.fake_context, 'fake-instance', 'image-id', 'backup-type', 'rotation')
    expected_args = {
        'instance': 'fake-instance',
        'image_id': 'image-id',
        'backup_type': 'backup-type',
        'rotation': 'rotation',
    }
    self._check_result(call_info, 'backup_instance', expected_args, version='1.24')

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