def another_team(): # Make a team with 20 players team = Team(name='blue') for i in range(20): team.add_player(get_random_player()) yield team
def team_with_defaults(player_one): # Make a team with 20 players, with one of them known team = Team(name='green') team.add_player(player_one) for i in range(19): team.add_player(get_random_player()) yield team
def red(): return Team("Красном")
def blue(): return Team("Голубом")
def team_empty(player_one): yield Team('empty')
def red(): return Team('Red')
def blue(): return Team('Blue')