def METHOD_NAME(self, group_name, capacity, error_code=None):
    expected_params = {
        'AutoScalingGroupName': group_name, 'DesiredCapacity': capacity,
        'HonorCooldown': False}
    response = {}
    self._stub_bifurcator(
        'set_desired_capacity', expected_params, response, error_code=error_code)