def METHOD_NAME(self):
    """Test the task check_for_updates."""
    # Check that setting should be empty
    self.assertEqual(InvenTreeSetting.get_setting('_INVENTREE_LATEST_VERSION'), '')
    # Get new version
    InvenTree.tasks.offload_task(InvenTree.tasks.check_for_updates)
    # Check that setting is not empty
    response = InvenTreeSetting.get_setting('_INVENTREE_LATEST_VERSION')
    self.assertNotEqual(response, '')
    self.assertTrue(bool(response))