def testLoadedActiveFile__active(self):
        self.task._loaded = True
        open(self.task._paths['active_file'], 'w', 0).write('')
        self.assertTrue(self.task.active)
Task.active (property): true if active file exists and task loaded.
dataset/ETHPy150Open xtrementl/focus/tests/unit/test_task.py/TestTask.testLoadedActiveFile__active