import pytest
from shipping import fee


@pytest.mark.parametrize("subtotal,expected", [(0, 499), (4999, 499), (5000, 0), (5001, 0), (9000, 0)])
def test_fee(subtotal, expected):
    assert fee(subtotal) == expected
