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