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. >>> ================================ RESTART ================================ >>> E. ====================================================================== ERROR: test_sum_lists (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 14, in test_sum_lists self.assertEqual(sum_lists([1, 2, 3], [4, 5, 6]), [5, 7, 9]) NameError: global name 'sum_lists' is not defined ---------------------------------------------------------------------- Ran 2 tests in 0.030s FAILED (errors=1) >>> ================================ RESTART ================================ >>> E. ====================================================================== ERROR: test_sum_lists (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 14, in test_sum_lists self.assertEqual(sum_lists([1, 2, 3], [4, 5, 6]), [5, 7, 9]) NameError: global name 'sum_lists' is not defined ---------------------------------------------------------------------- Ran 2 tests in 0.028s FAILED (errors=1) >>> ================================ RESTART ================================ >>> F. ====================================================================== FAIL: test_sum_lists (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 15, in test_sum_lists self.assertEqual(sum_lists([1, 2, 3], [4, 5, 6]), [5, 7, 9]) AssertionError: None != [5, 7, 9] ---------------------------------------------------------------------- Ran 2 tests in 0.031s FAILED (failures=1) >>> ================================ RESTART ================================ >>> F. ====================================================================== FAIL: test_sum_lists (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 15, in test_sum_lists self.assertEqual(sum_lists([1, 2, 3], [4, 5, 6]), [5, 7, 9]) AssertionError: None != [5, 7, 9] ---------------------------------------------------------------------- Ran 2 tests in 0.031s FAILED (failures=1) >>> ================================ RESTART ================================ >>> .. ---------------------------------------------------------------------- Ran 2 tests in 0.030s OK >>> ================================ RESTART ================================ >>> .E. ====================================================================== ERROR: test_sum_of_list (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 21, in test_sum_of_list self.assertEqual(sum_of_list([1, 2, 3, 4]), 10) NameError: global name 'sum_of_list' is not defined ---------------------------------------------------------------------- Ran 3 tests in 0.043s FAILED (errors=1) >>> ================================ RESTART ================================ >>> .F. ====================================================================== FAIL: test_sum_of_list (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 21, in test_sum_of_list self.assertEqual(sum_of_list([1, 2, 3, 4]), 10) AssertionError: None != 10 ---------------------------------------------------------------------- Ran 3 tests in 0.039s FAILED (failures=1) >>> ================================ RESTART ================================ >>> ... ---------------------------------------------------------------------- Ran 3 tests in 0.040s OK >>> ================================ RESTART ================================ >>> E... ====================================================================== ERROR: test_selection_sort (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 25, in test_selection_sort selection_sort([87, 37, 59, 68, 44, 25]), NameError: global name 'selection_sort' is not defined ---------------------------------------------------------------------- Ran 4 tests in 0.051s FAILED (errors=1) >>> ================================ RESTART ================================ >>> F... ====================================================================== FAIL: test_selection_sort (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 26, in test_selection_sort [25, 37, 44, 59, 68, 87]) AssertionError: None != [25, 37, 44, 59, 68, 87] ---------------------------------------------------------------------- Ran 4 tests in 0.052s FAILED (failures=1) >>> ================================ RESTART ================================ >>> F... ====================================================================== FAIL: test_selection_sort (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 26, in test_selection_sort [25, 37, 44, 59, 68, 87]) AssertionError: None != [25, 37, 44, 59, 68, 87] ---------------------------------------------------------------------- Ran 4 tests in 0.057s FAILED (failures=1) >>> ================================ RESTART ================================ >>> E... ====================================================================== ERROR: test_selection_sort (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 25, in test_selection_sort selection_sort([87, 37, 59, 68, 44, 25]), File "/home/sukaeto/test1/august8.py", line 36, in selection_sort unsorted_list = unsorted_list[:smallest] + unsorted_list[smallest + 1:] UnboundLocalError: local variable 'unsorted_list' referenced before assignment ---------------------------------------------------------------------- Ran 4 tests in 0.056s FAILED (errors=1) >>> ================================ RESTART ================================ >>> .... ---------------------------------------------------------------------- Ran 4 tests in 0.054s OK >>> ================================ RESTART ================================ >>> E.... ====================================================================== ERROR: test_bottle (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 31, in test_bottle self.assertFalse(bottle.open(b1)) AttributeError: 'module' object has no attribute 'open' ---------------------------------------------------------------------- Ran 5 tests in 0.069s FAILED (errors=1) >>> ================================ RESTART ================================ >>> E.... ====================================================================== ERROR: test_bottle (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 32, in test_bottle self.assertEqual(bottle.fill_level(), 100) TypeError: fill_level() takes exactly 1 argument (0 given) ---------------------------------------------------------------------- Ran 5 tests in 0.071s FAILED (errors=1) >>> ================================ RESTART ================================ >>> F.... ====================================================================== FAIL: test_bottle (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 32, in test_bottle self.assertEqual(bottle.fill_level(b1), 100) AssertionError: None != 100 ---------------------------------------------------------------------- Ran 5 tests in 0.066s FAILED (failures=1) >>> ================================ RESTART ================================ >>> F.... ====================================================================== FAIL: test_bottle (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 32, in test_bottle self.assertEqual(bottle.fill_level(b1), 100) AssertionError: None != 100 ---------------------------------------------------------------------- Ran 5 tests in 0.063s FAILED (failures=1) >>> ================================ RESTART ================================ >>> F.... ====================================================================== FAIL: test_bottle (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 32, in test_bottle self.assertEqual(bottle.fill_level(b1), 100) AssertionError: None != 100 ---------------------------------------------------------------------- Ran 5 tests in 0.067s FAILED (failures=1) >>> ================================ RESTART ================================ >>> ..... ---------------------------------------------------------------------- Ran 5 tests in 0.066s OK >>> ================================ RESTART ================================ >>> E.... ====================================================================== ERROR: test_bottle (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 34, in test_bottle bottle.open(b1) AttributeError: 'module' object has no attribute 'open' ---------------------------------------------------------------------- Ran 5 tests in 0.096s FAILED (errors=1) >>> ================================ RESTART ================================ >>> ..... ---------------------------------------------------------------------- Ran 5 tests in 0.062s OK >>> ================================ RESTART ================================ >>> ..... ---------------------------------------------------------------------- Ran 5 tests in 0.076s OK >>> ================================ RESTART ================================ >>> E.... ====================================================================== ERROR: test_bottle (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 39, in test_bottle self.assertEqual(bottle.remove_liquid(5),0) AttributeError: 'module' object has no attribute 'remove_liquid' ---------------------------------------------------------------------- Ran 5 tests in 0.065s FAILED (errors=1) >>> ================================ RESTART ================================ >>> ..... ---------------------------------------------------------------------- Ran 5 tests in 0.064s OK >>> ================================ RESTART ================================ >>> ..... ---------------------------------------------------------------------- Ran 5 tests in 0.062s OK >>> ================================ RESTART ================================ >>> ..... ---------------------------------------------------------------------- Ran 5 tests in 0.062s OK >>> ================================ RESTART ================================ >>> .E.... ====================================================================== ERROR: test_drunk (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 49, in test_drunk drunk_guy = drunk_create() NameError: global name 'drunk_create' is not defined ---------------------------------------------------------------------- Ran 6 tests in 0.084s FAILED (errors=1) >>> ================================ RESTART ================================ >>> .E.... ====================================================================== ERROR: test_drunk (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 49, in test_drunk drunk_guy = drunk.create() AttributeError: 'module' object has no attribute 'create' ---------------------------------------------------------------------- Ran 6 tests in 0.078s FAILED (errors=1) >>> ================================ RESTART ================================ >>> ...... ---------------------------------------------------------------------- Ran 6 tests in 0.082s OK >>> ================================ RESTART ================================ >>> .E.... ====================================================================== ERROR: test_drunk (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 60, in test_drunk drunk.swig(drunk_guy, b1) AttributeError: 'module' object has no attribute 'swig' ---------------------------------------------------------------------- Ran 6 tests in 0.082s FAILED (errors=1) >>> ================================ RESTART ================================ >>> .E.... ====================================================================== ERROR: test_drunk (__main__.TestAugust8) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/sukaeto/test1/august8_tests.py", line 63, in test_drunk self.assertEqual(drunk.bac(drunk_guy), 0.01) AttributeError: 'module' object has no attribute 'bac' ---------------------------------------------------------------------- Ran 6 tests in 0.079s FAILED (errors=1) >>> ================================ RESTART ================================ >>> ...... ---------------------------------------------------------------------- Ran 6 tests in 0.078s OK >>>