def test_get_matchs_by_coach_team(): """Test that MatchsByCoach/<coachid> returns a list of match object""" url = helpertest.apirooturl() + "/MatchsByCoachTeam/1" helpertest.check_list_element(url, assert_match)
def test_played_matchs(): """Test that PlayedMatchs/<edition>/<round> returns a list of match object""" url = helpertest.apirooturl() + "/PlayedMatchs/1/1" helpertest.check_list_element(url, assert_played_match_edition_1_round_1)
def test_to_play_matchs(): """Test that ToPlayMatchs/<edition>/<round> returns a list of match object""" url = helpertest.apirooturl() + "/ToPlayMatchs/1/5" helpertest.check_list_element(url, assert_to_play_match_edition_1_round_5)
def test_list_match(): """Test that Matchs/<edition>/<round> returns a list of match object""" url = helpertest.apirooturl() + "/Matchs/" + helpertest.edition() + "/1" helpertest.check_list_element(url, assert_match_edition_1_round_1)