....E....EF...F. ====================================================================== ERROR: testHash (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 92, in testHash self.assertEqual(hash(Interval(3, 11)), hash(Interval(3, 11))) TypeError: __hash__() should return an int ====================================================================== ERROR: testLeftRight (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 57, in testLeftRight self.assertEqual(-5.0, i.left()) TypeError: 'float' object is not callable ====================================================================== FAIL: testLen (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 99, in testLen self.assertEqual(7, len(Interval(-2, 4.1))) AssertionError: 7 != 6 ====================================================================== FAIL: testSum (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 105, in testSum self.assertRaises(ValueError, Interval.__add__, Interval(7, 99), Interval(101, 200)) AssertionError: ValueError not raised ---------------------------------------------------------------------- Ran 16 tests in 0.006s FAILED (failures=2, errors=2)