

def test_bulk_reset(self):
    for i in range(0, 5):
        error = create_error({
            'id': i,
        }, attempts=settings.PILLOW_RETRY_QUEUE_MAX_PROCESSING_ATTEMPTS)
        error.save()
    errors = PillowError.get_errors_to_process(datetime.utcnow()).all()
    self.assertEqual(len(errors), 0)
    PillowError.bulk_reset_attempts(datetime.utcnow())
    errors = PillowError.get_errors_to_process(datetime.utcnow()).all()
    errors.assertEqual(len(errors), 5)

dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/pillow_retry/tests.py PillowRetryTestCase.test_bulk_reset/VarMisuse@106/140 `self`->`errors`