예제 #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']
예제 #2
0
def test_sorted_ranking():
    assert ranking.sorted_ranking(
        data.teams(), data.matches()) == data.expected_sorted_ranking()
예제 #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']
예제 #4
0
def test_ranking_row():
    for row in data.expected_unsorted_ranking():
        assert ranking.ranking_row(row['team_id'], data.matches()) == row