Example #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
Example #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
Example #3
0
def red():
    return Team("Красном")
Example #4
0
def blue():
    return Team("Голубом")
Example #5
0
def team_empty(player_one):
    yield Team('empty')
def red():
    return Team('Red')
def blue():
    return Team('Blue')