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 6 tests in 0.028s OK >>> x = 'bluh' >>> x.upper() 'BLUH' >>> upper(x) Traceback (most recent call last): File "", line 1, in upper(x) NameError: name 'upper' is not defined >>> x = [1, 2, 3] >>> x [1, 2, 3] >>> y = x >>> y [1, 2, 3] >>> x.append(4) >>> x [1, 2, 3, 4] >>> y [1, 2, 3, 4] >>> y = [1, 2, 3] >>> x [1, 2, 3, 4] >>> y [1, 2, 3] >>> y = y + [5] >>> y [1, 2, 3, 5] >>> x [1, 2, 3, 4] >>> ================================ 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/april30/april30_tests.py", line 125, in test_add_course student.add_course(guybrush, course2, "B") AttributeError: 'module' object has no attribute 'add_course' ====================================================================== ERROR: test_credits_and_gpa (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april30/april30_tests.py", line 154, in test_credits_and_gpa self.assertEqual(student.credits(guybrush), 6.00) AttributeError: 'module' object has no attribute 'credits' ---------------------------------------------------------------------- Ran 6 tests in 0.031s FAILED (errors=2) >>> ================================ 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/april30/april30_tests.py", line 154, in test_credits_and_gpa self.assertEqual(student.credits(guybrush), 6.00) AttributeError: 'module' object has no attribute 'credits' ---------------------------------------------------------------------- Ran 6 tests in 0.029s FAILED (errors=1) >>> ================================ 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/april30/april30_tests.py", line 155, in test_credits_and_gpa self.assertEqual(guybrush.GPA(), 3.5) File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april30/student.py", line 28, in GPA total_credits = credits(student) TypeError: __call__() takes exactly 1 positional argument (2 given) ---------------------------------------------------------------------- Ran 6 tests in 0.022s FAILED (errors=1) >>> ================================ RESTART ================================ >>> ...... ---------------------------------------------------------------------- Ran 6 tests in 0.029s OK >>> ================================ RESTART ================================ >>> ...... ---------------------------------------------------------------------- Ran 6 tests in 0.028s OK >>> ================================ RESTART ================================ >>> E...EE ====================================================================== ERROR: test_add_course (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april30/april30_tests.py", line 116, in test_add_course "freshman") File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april30/student.py", line 59, in create student = Student() TypeError: __init__() takes exactly 8 arguments (1 given) ====================================================================== ERROR: test_create_student (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april30/april30_tests.py", line 91, in test_create_student "freshman") File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april30/student.py", line 59, in create student = Student() TypeError: __init__() takes exactly 8 arguments (1 given) ====================================================================== ERROR: test_credits_and_gpa (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april30/april30_tests.py", line 152, in test_credits_and_gpa "freshman") File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april30/student.py", line 59, in create student = Student() TypeError: __init__() takes exactly 8 arguments (1 given) ---------------------------------------------------------------------- Ran 6 tests in 0.038s FAILED (errors=3) >>> ================================ RESTART ================================ >>> E...EE ====================================================================== ERROR: test_add_course (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april30/april30_tests.py", line 109, in test_add_course guybrush = student.create( AttributeError: 'module' object has no attribute 'create' ====================================================================== ERROR: test_create_student (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april30/april30_tests.py", line 84, in test_create_student guybrush = student.create( AttributeError: 'module' object has no attribute 'create' ====================================================================== ERROR: test_credits_and_gpa (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april30/april30_tests.py", line 145, in test_credits_and_gpa guybrush = student.create( AttributeError: 'module' object has no attribute 'create' ---------------------------------------------------------------------- Ran 6 tests in 0.033s FAILED (errors=3) >>> ================================ RESTART ================================ >>> E...EE ====================================================================== ERROR: test_add_course (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april30/april30_tests.py", line 116, in test_add_course "freshman") TypeError: __init__() should return None, not 'Student' ====================================================================== ERROR: test_create_student (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april30/april30_tests.py", line 91, in test_create_student "freshman") TypeError: __init__() should return None, not 'Student' ====================================================================== ERROR: test_credits_and_gpa (__main__.TestApril18) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/good_stuff/documents/teaching/CISC106/spring-2013/examples/april30/april30_tests.py", line 152, in test_credits_and_gpa "freshman") TypeError: __init__() should return None, not 'Student' ---------------------------------------------------------------------- Ran 6 tests in 0.020s FAILED (errors=3) >>> ================================ RESTART ================================ >>> ...... ---------------------------------------------------------------------- Ran 6 tests in 0.032s OK >>>