EE.EE ====================================================================== ERROR: test_1_limit (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 33, in test_1_limit self.assertHigherGPA(self.user.higher_gpa(courses, beat_me, limit), courses, beat_me, limit) File ".../fn171717/2008-03-17 14:54:15/user.py", line 8, in higher_gpa grades[student] += course.get(student) KeyError: '5111' ====================================================================== ERROR: test_2_empty_negative (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 38, in test_2_empty_negative self.assertEqual([], self.user.higher_gpa(courses, beat_me)) File ".../fn171717/2008-03-17 14:54:15/user.py", line 5, in higher_gpa grades = courses[0] IndexError: list index out of range ====================================================================== ERROR: test_4_not_in_all_courses (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 54, in test_4_not_in_all_courses self.assertHigherGPA(self.user.higher_gpa(courses, beat_me), courses, beat_me) File ".../fn171717/2008-03-17 14:54:15/user.py", line 8, in higher_gpa grades[student] += course.get(student) KeyError: 'baba' ====================================================================== ERROR: test_5_empty_result (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 63, in test_5_empty_result self.assertHigherGPA(self.user.higher_gpa(courses, beat_me), courses, beat_me) File ".../fn171717/2008-03-17 14:54:15/user.py", line 8, in higher_gpa grades[student] += course.get(student) KeyError: 'baba' ---------------------------------------------------------------------- Ran 5 tests in 0.002s FAILED (errors=4)