def end_time(self): if not self.is_done: return None end_times = ( run.end_time for run in self.get_action_runs_with_cleanup() ) return iteration.max_filter(end_times)
def test_max_filter(self): seq = [None, 2, None, 7, None, 9, 10, 12, 1] assert_equal(max_filter(seq), 12)
def end_time(self): if not self.is_done: return None end_times = (run.end_time for run in self.get_action_runs_with_cleanup()) return iteration.max_filter(end_times)