def testSetTaskTotalDuration__on_taskstart(self):
        self.plugin.total_duration = 30
        self.plugin.on_taskstart(self.env.task)
        self.assertEqual(self.env.task._total_duration,
                         self.plugin.total_duration)
Timer.on_taskstart: sets task total duration reached timer setting.
dataset/ETHPy150Open xtrementl/focus/tests/unit/plugin/modules/test_timer.py/TestTimer.testSetTaskTotalDuration__on_taskstart