import pytest
from calcscore import round_score

# you'll be picking what teams make it to the next round
#   - so picking 32, then 16, then 8, 4, 2, 1...i.e. round 1-6 winners
# teams will have a name & a seed
# seed doesn't change, so maybe make that not passed around w/ results

def test_round_score_invalid_round():
    with pytest.raises(ValueError, match=r".*range*"):
        round_score(0)

    with pytest.raises(ValueError, match=r".*range*"):
        round_score(7)

def test_round_score_invalid_winner():
    VALID_ROUND = 1
    all_teams = []
    round_winners = []
    picked_winners = ["picked team"]
    with pytest.raises(ValueError, match=r".*invalid winner"):
        round_score(VALID_ROUND, all_teams, round_winners, picked_winners)
    # score = round_score(0)

    # assert score == 0

[((10, 9, 10, 53), 'pytest.raises', 'pytest.raises', (), '', False, 'import pytest\n'), ((11, 8, 11, 22), 'calcscore.round_score', 'round_score', ({(11, 20, 11, 21): '(0)'}, {}), '(0)', False, 'from calcscore import round_score\n'), ((13, 9, 13, 53), 'pytest.raises', 'pytest.raises', (), '', False, 'import pytest\n'), ((14, 8, 14, 22), 'calcscore.round_score', 'round_score', ({(14, 20, 14, 21): '(7)'}, {}), '(7)', False, 'from calcscore import round_score\n'), ((21, 9, 21, 61), 'pytest.raises', 'pytest.raises', (), '', False, 'import pytest\n'), ((22, 8, 22, 74), 'calcscore.round_score', 'round_score', ({(22, 20, 22, 31): 'VALID_ROUND', (22, 33, 22, 42): 'all_teams', (22, 44, 22, 57): 'round_winners', (22, 59, 22, 73): 'picked_winners'}, {}), '(VALID_ROUND, all_teams, round_winners, picked_winners)', False, 'from calcscore import round_score\n')]