def test_fib_iter_exc(self): with self.assertRaises( ValueError, msg= "Is there a -1 number of Fibonacci sequence? I think here should be and exception..." ): fib.fib_iterative(-1)
def test_fib_iterative(self): self.assertEqual( 34, fib.fib_iterative(9), msg= "Something wrong. Do you remember that Fibonacci sequence start from 0?.." )