def test_aoeu_input_exception(): with pytest.raises(TypeError): fibonacci('aoeu')
def test_negative_input_exception(): with pytest.raises(ValueError): fibonacci(-1)
def test_none_input_exception(): with pytest.raises(TypeError): fibonacci(None)
def test_eval(test_input, expected): assert fibonacci(test_input) == expected
def test_five_input(): assert fibonacci(5) == 5
def test_one_input(): assert fibonacci(1) == 1
def test_zero_input(): assert fibonacci(0) == 0