fuel_price_tracker/tests/test_skeleton.py

18 lines
311 B
Python
Raw Permalink Normal View History

2021-02-09 08:20:51 +00:00
# -*- 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)