def test_fibo_large(self): assert mathlib.fibo(30) == 832040
def test_fibo_invalid(self): with pytest.raises(TypeError): mathlib.fibo("haha")
def test_fibo_success(self, n, result): assert mathlib.fibo(n) == result
def test_fibo_zero(self): assert mathlib.fibo(0) == 0
def test_fibo(self): assert mathlib.fibo(1) == 1 assert mathlib.fibo(2) == 1