

def test_pillow_not_found(self):
    error = PillowError.objects.create(doc_id='missing-pillow', pillow='NotARealPillow', date_created=datetime.utcnow(), date_last_attempt=datetime.utcnow())
    process_pillow_retry(error.id)
    self.assertTrue((PillowError.objects.get(pk=error.pk).total_attempts > PillowError.multi_attempts_cutoff()))

dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/pillow_retry/tests.py PillowRetryTestCase.test_pillow_not_found/original