Python 3.2.3 (default, Feb 20 2013, 14:44:27) [GCC 4.7.2] on linux2 Type "copyright", "credits" or "license()" for more information. >>> ================================ RESTART ================================ >>> . ---------------------------------------------------------------------- Ran 1 test in 0.003s OK >>> ================================ RESTART ================================ >>> . ---------------------------------------------------------------------- Ran 1 test in 0.003s OK >>> ================================ RESTART ================================ >>> E. ====================================================================== ERROR: test_course_equal (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 53, in test_course_equal self.assertTrue(course.equal(course1, course2)) AttributeError: 'module' object has no attribute 'equal' ---------------------------------------------------------------------- Ran 2 tests in 0.006s FAILED (errors=1) >>> ================================ RESTART ================================ >>> Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 21, in import course File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/course.py", line 15 (course1.name == course2.name and ^ IndentationError: unexpected indent >>> ================================ RESTART ================================ >>> .. ---------------------------------------------------------------------- Ran 2 tests in 0.007s OK >>> ================================ RESTART ================================ >>> E.. ====================================================================== ERROR: test_clone_course (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 71, in test_clone_course course2 = course.clone(course1) AttributeError: 'module' object has no attribute 'clone' ---------------------------------------------------------------------- Ran 3 tests in 0.009s FAILED (errors=1) >>> ================================ RESTART ================================ >>> ... ---------------------------------------------------------------------- Ran 3 tests in 0.009s OK >>> ================================ RESTART ================================ >>> ...E ====================================================================== ERROR: test_create_student (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 83, in test_create_student guybrush = student.create( NameError: global name 'student' is not defined ---------------------------------------------------------------------- Ran 4 tests in 0.012s FAILED (errors=1) >>> ================================ RESTART ================================ >>> ...E ====================================================================== ERROR: test_create_student (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 83, in test_create_student guybrush = student.create( NameError: global name 'student' is not defined ---------------------------------------------------------------------- Ran 4 tests in 0.013s FAILED (errors=1) >>> ================================ RESTART ================================ >>> ...E ====================================================================== ERROR: test_create_student (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 84, in test_create_student guybrush = student.create( AttributeError: 'module' object has no attribute 'create' ---------------------------------------------------------------------- Ran 4 tests in 0.012s FAILED (errors=1) >>> ================================ RESTART ================================ >>> .... ---------------------------------------------------------------------- Ran 4 tests in 0.018s OK >>> ================================ RESTART ================================ >>> E.... ====================================================================== ERROR: test_add_course (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 128, in test_add_course student.add_course(guybrush, course2, "B") File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/student.py", line 30, in add_course student.classes_taken += [course.clone(course)] AttributeError: 'Course' object has no attribute 'clone' ---------------------------------------------------------------------- Ran 5 tests in 0.012s FAILED (errors=1) >>> ================================ RESTART ================================ >>> E.... ====================================================================== ERROR: test_add_course (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 128, in test_add_course student.add_course(guybrush, course2, "B") File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/student.py", line 32, in add_course student.classes_taken += [course.clone(course)] AttributeError: 'Course' object has no attribute 'clone' ---------------------------------------------------------------------- Ran 5 tests in 0.021s FAILED (errors=1) >>> ================================ RESTART ================================ >>> ..... ---------------------------------------------------------------------- Ran 5 tests in 0.016s OK >>> ================================ RESTART ================================ >>> ....E ====================================================================== ERROR: test_create_student (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 93, in test_create_student "freshman") TypeError: create() takes exactly 8 positional arguments (9 given) ---------------------------------------------------------------------- Ran 5 tests in 0.014s FAILED (errors=1) >>> ================================ RESTART ================================ >>> E.... ====================================================================== ERROR: test_add_course (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 121, in test_add_course "freshman") TypeError: create() takes exactly 9 arguments (8 given) ---------------------------------------------------------------------- Ran 5 tests in 0.013s FAILED (errors=1) >>> ================================ RESTART ================================ >>> ..... ---------------------------------------------------------------------- Ran 5 tests in 0.012s OK >>> ================================ RESTART ================================ >>> F.... ====================================================================== FAIL: test_add_course (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 134, in test_add_course self.assertEqual(guybrush.grades, ["B", "A"]) AssertionError: Lists differ: ['A'] != ['B', 'A'] First differing element 0: A B Second list contains 1 additional elements. First extra element 1: A - ['A'] + ['B', 'A'] ---------------------------------------------------------------------- Ran 5 tests in 0.013s FAILED (failures=1) >>> ================================ RESTART ================================ >>> F.... ====================================================================== FAIL: test_add_course (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 134, in test_add_course self.assertEqual(guybrush.grades, ["B", "A"]) AssertionError: Lists differ: ['A', 'B'] != ['B', 'A'] First differing element 0: A B - ['A', 'B'] + ['B', 'A'] ---------------------------------------------------------------------- Ran 5 tests in 0.023s FAILED (failures=1) >>> ================================ RESTART ================================ >>> ..... ---------------------------------------------------------------------- Ran 5 tests in 0.015s OK >>> ================================ RESTART ================================ >>> E...E ====================================================================== ERROR: test_add_course (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 116, in test_add_course "freshman") TypeError: create() takes exactly 9 arguments (7 given) ====================================================================== ERROR: test_create_student (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 91, in test_create_student "freshman") TypeError: create() takes exactly 9 arguments (7 given) ---------------------------------------------------------------------- Ran 5 tests in 0.013s FAILED (errors=2) >>> ================================ RESTART ================================ >>> ..... ---------------------------------------------------------------------- Ran 5 tests in 0.029s OK >>> ================================ RESTART ================================ >>> .....E ====================================================================== ERROR: test_credits (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 154, in test_credits self.assertEqual(student.credits(guybrush), 6.00) AttributeError: 'module' object has no attribute 'credits' ---------------------------------------------------------------------- Ran 6 tests in 0.015s FAILED (errors=1) >>> ================================ RESTART ================================ >>> ...... ---------------------------------------------------------------------- Ran 6 tests in 0.014s OK >>> ================================ RESTART ================================ >>> .....E ====================================================================== ERROR: test_credits_and_gpa (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 155, in test_credits_and_gpa self.assertEqual(student.GPA(guybrush), 3.5) AttributeError: 'module' object has no attribute 'GPA' ---------------------------------------------------------------------- Ran 6 tests in 0.022s FAILED (errors=1) >>> ================================ RESTART ================================ >>> .....F ====================================================================== FAIL: test_credits_and_gpa (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april18/april18_tests.py", line 155, in test_credits_and_gpa self.assertEqual(student.GPA(guybrush), 3.5) AssertionError: 0.875 != 3.5 ---------------------------------------------------------------------- Ran 6 tests in 0.016s FAILED (failures=1) >>> ================================ RESTART ================================ >>> ...... ---------------------------------------------------------------------- Ran 6 tests in 0.013s OK >>>