def test_womansworkisalmostdone(self): expected_result = { "Planned Complete": 100, "Planned Incomplete": 0, "Unplanned Complete": 20, "Unplanned Incomplete": 80 } points_commited = 100 points_estimated = 200 points_completed = 120 actual_result = Burndown.calculate(points_commited, points_estimated, points_completed) self.assertEqual(expected_result, actual_result)
def test_morenuthindoin(self): expected_result = { "Planned Complete": 0, "Planned Incomplete": 100, "Unplanned Complete": 0, "Unplanned Incomplete": 100 } points_commited = 100 points_estimated = 200 points_completed = 0 actual_result = Burndown.calculate(points_commited, points_estimated, points_completed) self.assertEqual(expected_result, actual_result)
def test_someprogressontoomuchtodo(self): expected_result = { "Planned Complete": 33, "Planned Incomplete": 67, "Unplanned Complete": 0, "Unplanned Incomplete": 100 } points_commited = 100 points_estimated = 200 points_completed = 33 actual_result = Burndown.calculate(points_commited, points_estimated, points_completed) self.assertEqual(expected_result, actual_result)
def test_somedoin(self): expected_result = { "Planned Complete": 25, "Planned Incomplete": 75, "Unplanned Complete": 0, "Unplanned Incomplete": 0 } points_commited = 100 points_estimated = 100 points_completed = 25 actual_result = Burndown.calculate(points_commited, points_estimated, points_completed) self.assertEqual(expected_result, actual_result)