def METHOD_NAME(self):
    """
    Test that we actually do check expiration on each entitlement (happy path)
    """
    make_entitlement()
    make_entitlement()
    with mock.patch(
        'common.djangoapps.entitlements.models.CourseEntitlement.expired_at_datetime',
        new_callable=mock.PropertyMock
    ) as mock_datetime:
        tasks.expire_old_entitlements.delay(1, 3).get()
    assert mock_datetime.call_count == 2