'Original exception should be raised if the resize is not
rescheduled.'

@mock.patch.object(compute_manager.ComputeManager, '_reschedule')
def test_reschedule_false(self, mock_res):

    instance = self._create_fake_instance_obj()
    scheduler_hint = dict(filter_properties={})
    method_args = (instance, None, scheduler_hint, self.instance_type)
    mock_res.return_value = False
    try:
        raise test.TestingException('Original')
    except Exception:
        exc_info = sys.exc_info()
        self.assertRaises(test.TestingException, self.compute._reschedule_resize_or_reraise, self.context, None, instance, exc_info, self.instance_type, {}, {})
        mock_res.assert_called_once_with(self.context, {}, {}, instance, self.compute.compute_task_api.resize_instance, method_args, task_states.RESIZE_PREP, exc_info)
