def METHOD_NAME(self):
    task_sync = TaskLibrarySync()
    task_filename = 'task4.rpm'
    task_rpm_disk = os.path.join(task_sync.tasklib.rpmspath, task_filename)
    task_sync.sync_tasks(['%s%s' % (self.task_url, task_filename)])
    with session.begin():
        tasks = Task.query.filter(Task.rpm == task_filename).all()
        self.assertEqual(len(tasks), 1)
    self.assertTrue(os.path.exists(task_rpm_disk))