def METHOD_NAME(self):
    """Test the task delete_old_error_logs."""
    # Create error
    error_obj = Error.objects.create()
    error_obj.when = threshold_low
    error_obj.save()
    # Check that it is not empty
    errors = Error.objects.filter(when__lte=threshold,)
    self.assertNotEqual(len(errors), 0)
    # Run action
    InvenTree.tasks.offload_task(InvenTree.tasks.delete_old_error_logs)
    # Check that it is empty again
    errors = Error.objects.filter(when__lte=threshold,)
    self.assertEqual(len(errors), 0)