Exemple #1
0
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
Exemple #2
0
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("Голубом")
Exemple #5
0
def team_empty(player_one):
    yield Team('empty')
def red():
    return Team('Red')
def blue():
    return Team('Blue')