def test_get_total_run_time(self): th = TaskHistory() th.log_abinit_stop(run_time=100) th.log_abinit_stop(run_time=100) th.log_abinit_stop(run_time=100) total_run_time = th.get_total_run_time() self.assertEqual(total_run_time, 300)