def test_fib_exc(self): with self.assertRaises( ValueError, msg= "Is there a -35 number of Fibonacci sequence? I think here should be an exception..." ): fib.fib_recursive(-35)
def test_fib_recursive(self): self.assertEqual( 21, fib.fib_recursive(8), msg= "Something wrong. Do you remember that Fibonacci sequence start from 0?.." )