def testTaskNotLoaded__duration(self):
        self.task._loaded = False
        self.task._start_time = datetime.now() + timedelta(minutes=-15)
        self.assertEqual(self.task.duration, 0)
Task.duration (property): task not loaded, returns 0.
dataset/ETHPy150Open xtrementl/focus/tests/unit/test_task.py/TestTask.testTaskNotLoaded__duration