- if test_id(id, item.id) and
- test_lesser(unitStart, item.unitStop) and
- test_greater_equal(unitStop, item.unitStart) and
- test_lesser(timeStart, item.timeStop) and
- test_greater_equal(timeStop, item.timeStart):
- list = list + item
+ if self.test_id(id, item.id) and \
+ self.test_lesser(unitStart, item.unitStop) and \
+ self.test_greater(unitStop, item.unitStart) and \
+ self.test_lesser(timeStart, item.timeStop) and \
+ self.test_greater(timeStop, item.timeStart):
+ list.append(item)