def test_time_dist_fixed_add_most_likely_estimate(): time_dist = TimeDist('fixed', 1, unit='minutes', weight=1.0) \ + TimeDist('fixed', 2, unit='minutes', weight=1.0) assert time_dist.most_likely_estimate() == timedelta(seconds=90)
def test_time_dist_fixed_most_likely_estimate(): time_dist = TimeDist('fixed', 1, unit='minutes') assert time_dist.most_likely_estimate() == timedelta(minutes=1)