def METHOD_NAME(self, debug):
    worker = Mock(name='worker')
    x = autoscale.Autoscaler(self.pool, 10, 3, worker=worker)
    x.scale_up(3)
    x._last_scale_up = monotonic() - 10000
    x.pool.shrink_raises_ValueError = True
    x.scale_down(1)
    assert debug.call_count