<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def total_duration(self):
 """ Sum of the durations of the tests in this list. :return: integer """

        durations = [result.duration for result in self.data]
        return sum(durations)