Example #1
0
def date_projections(project):
	significant_dates = (('March', date(day = 1, month = 3, year = 2010)),)

	for label, finish in significant_dates:
		print "%s points for YWV %d" % (label, points_delivered_until(finish, velocity = project.velocity.yesterday, capacity = 2))

	target_dates = (('24th February', date(day = 24, month = 2, year = 2010)), ('24th March', date(day = 24, month = 3, year = 2010)))

	for label, target_date in target_dates:
		print "To meet a date of %s a velocity of %d is required" % (label, velocity_required_for(end_date = target_date, start_date = date.today(), target_points = project.remaining_scope, capacity = 2))
Example #2
0
def test_points_delivered_until():
	assert 20 == points_delivered_until(twenty_fifth_november, start_date = eighteenth_november, capacity = 2, velocity = 10, holiday_weeks = 0)