Esempio n. 1
0
def test_lost_match_count():
    for row in data.expected_sorted_ranking():
        assert ranking.lost_match_count(
            row['team_id'], data.matches()) == row['lost_match_count']
Esempio n. 2
0
def test_sorted_ranking():
    assert ranking.sorted_ranking(
        data.teams(), data.matches()) == data.expected_sorted_ranking()
Esempio n. 3
0
def test_goal_against_count():
    for row in data.expected_sorted_ranking():
        assert ranking.goal_against_count(
            row['team_id'], data.matches()) == row['goal_against_count']
Esempio n. 4
0
def test_ranking_row():
    for row in data.expected_unsorted_ranking():
        assert ranking.ranking_row(row['team_id'], data.matches()) == row