def test_draw(self): items = [1,2,3,4] drawn = draw(items) assert drawn in items
def pick_player(self, position, side): collection = side == RuleSet.DEFENSE and self.defense_positions or self.offense_positions position_class = draw(collection[position]) return draw(self.game.possession.players_for(position_class))