def METHOD_NAME(self):
    """Test task offloading."""
    # Run with function ref
    InvenTree.tasks.offload_task(get_result)
    # Run with string ref
    InvenTree.tasks.offload_task('InvenTree.test_tasks.get_result')
    # Error runs
    # Malformed taskname
    with self.assertWarnsMessage(UserWarning, "WARNING: 'InvenTree' not started - Malformed function path"):
        InvenTree.tasks.offload_task('InvenTree')
    # Non existent app
    with self.assertWarnsMessage(UserWarning, "WARNING: 'InvenTreeABC.test_tasks.doesnotmatter' not started - No module named 'InvenTreeABC.test_tasks'"):
        InvenTree.tasks.offload_task('InvenTreeABC.test_tasks.doesnotmatter')
    # Non existent function
    with self.assertWarnsMessage(UserWarning, "WARNING: 'InvenTree.test_tasks.doesnotexsist' not started - No function named 'doesnotexsist'"):
        InvenTree.tasks.offload_task('InvenTree.test_tasks.doesnotexsist')