Python 3.2.3rc2 (default, Mar 21 2012, 06:59:51) [GCC 4.6.3] on linux2 Type "copyright", "credits" or "license()" for more information. >>> range(0, 10) range(0, 10) >>> type(range(0, 10)) >>> range(10) range(0, 10) >>> ================================ RESTART ================================ >>> 0 1 2 3 4 5 6 7 8 9 >>> ================================ RESTART ================================ >>> 0 1 2 3 4 5 6 7 8 9 E ====================================================================== ERROR: test_sum (__main__.TestJuly2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/july2_tests.py", line 7, in test_sum self.assertEqual(sum_to_n(3), 6) NameError: global name 'sum_to_n' is not defined ---------------------------------------------------------------------- Ran 1 test in 0.068s FAILED (errors=1) >>> ================================ RESTART ================================ >>> E ====================================================================== ERROR: test_sum (__main__.TestJuly2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/july2_tests.py", line 7, in test_sum self.assertEqual(sum_to_n(3), 6) NameError: global name 'sum_to_n' is not defined ---------------------------------------------------------------------- Ran 1 test in 0.017s FAILED (errors=1) >>> ================================ RESTART ================================ >>> . ---------------------------------------------------------------------- Ran 1 test in 0.018s OK >>> ================================ RESTART ================================ >>> F ====================================================================== FAIL: test_sum (__main__.TestJuly2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/july2_tests.py", line 9, in test_sum self.assertEqual(sum_to_n(100), 100) AssertionError: 5050 != 100 ---------------------------------------------------------------------- Ran 1 test in 0.016s FAILED (failures=1) >>> ================================ RESTART ================================ >>> . ---------------------------------------------------------------------- Ran 1 test in 0.019s OK >>> ================================ RESTART ================================ >>> E. ====================================================================== ERROR: test_prime (__main__.TestJuly2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/july2_tests.py", line 12, in test_prime self.asertTrue(is_prime(2)) AttributeError: 'TestJuly2' object has no attribute 'asertTrue' ---------------------------------------------------------------------- Ran 2 tests in 0.045s FAILED (errors=1) >>> ================================ RESTART ================================ >>> .. ---------------------------------------------------------------------- Ran 2 tests in 0.029s OK >>> ================================ RESTART ================================ >>> E... ====================================================================== ERROR: test_count_digits (__main__.TestJuly2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/july2_tests.py", line 20, in test_count_digits self.assertEqual(count_digits(100), 3) NameError: global name 'count_digits' is not defined ---------------------------------------------------------------------- Ran 4 tests in 0.052s FAILED (errors=1) >>> ================================ RESTART ================================ >>> EF.. ====================================================================== ERROR: test_count_digits (__main__.TestJuly2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/july2_tests.py", line 20, in test_count_digits self.assertEqual(count_digits(100), 3) NameError: global name 'count_digits' is not defined ====================================================================== FAIL: test_fs (__main__.TestJuly2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/july2_tests.py", line 27, in test_fs self.assertEqual(f(6), 21) AssertionError: 6 != 21 ---------------------------------------------------------------------- Ran 4 tests in 0.066s FAILED (failures=1, errors=1) >>> ================================ RESTART ================================ >>> E... ====================================================================== ERROR: test_count_digits (__main__.TestJuly2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/july2_tests.py", line 20, in test_count_digits self.assertEqual(count_digits(100), 3) NameError: global name 'count_digits' is not defined ---------------------------------------------------------------------- Ran 4 tests in 0.059s FAILED (errors=1) >>> ================================ RESTART ================================ >>> .... ---------------------------------------------------------------------- Ran 4 tests in 0.051s OK >>> ================================ RESTART ================================ >>> .... ---------------------------------------------------------------------- Ran 4 tests in 0.057s OK >>> ================================ RESTART ================================ >>> .F... ====================================================================== FAIL: test_factorial (__main__.TestJuly2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/july2_tests.py", line 32, in test_factorial self.assertEqual(factorial(5), 120) AssertionError: 0 != 120 ---------------------------------------------------------------------- Ran 5 tests in 0.069s FAILED (failures=1) >>> ================================ RESTART ================================ >>> ..... ---------------------------------------------------------------------- Ran 5 tests in 0.065s OK >>> ================================ RESTART ================================ >>> .F... ====================================================================== FAIL: test_factorial (__main__.TestJuly2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/july2_tests.py", line 34, in test_factorial self.assertEqual(factorial(0), 0) AssertionError: 1 != 0 ---------------------------------------------------------------------- Ran 5 tests in 0.070s FAILED (failures=1) >>> ================================ RESTART ================================ >>> ..... ---------------------------------------------------------------------- Ran 5 tests in 0.063s OK >>> ================================ RESTART ================================ >>> E.... ====================================================================== ERROR: test_count_digits (__main__.TestJuly2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/july2_tests.py", line 25, in test_count_digits self.assertEqual(count_digits2(100), 3) NameError: global name 'count_digits2' is not defined ---------------------------------------------------------------------- Ran 5 tests in 0.068s FAILED (errors=1) >>> ================================ RESTART ================================ >>> ..... ---------------------------------------------------------------------- Ran 5 tests in 0.064s OK >>>