import pytest
from chapter_numbers import parse_chapter_number

@pytest.fixture
def chapter_number_text():
    return "7"

def test_parses_prepared_text(chapter_number_text):
    assert parse_chapter_number(chapter_number_text) == 7

@pytest.mark.parametrize("text, expected", [("1", 1), ("7", 7)])
def test_parses_each_number(text, expected):
    assert parse_chapter_number(text) == expected
