fuel_price_tracker/tests/test_skeleton.py
2021-02-09 09:20:51 +01:00

18 lines
311 B
Python

# -*- coding: utf-8 -*-
import pytest
from fuel_price_tracker.skeleton import fib
__author__ = "Adrien Raison"
__copyright__ = "Adrien Raison"
__license__ = "mit"
def test_fib():
assert fib(1) == 1
assert fib(2) == 1
assert fib(7) == 13
with pytest.raises(AssertionError):
fib(-10)