def check(self, rosters, team, teamLimits): rosterKey = None if team is 1: rosterKey = PREBATTLE_ROSTER.ASSIGNED_IN_TEAM1 elif team is 2: rosterKey = PREBATTLE_ROSTER.ASSIGNED_IN_TEAM2 if rosterKey in rosters: accountsInfo = rosters[rosterKey] else: accountsInfo = {} return isTeamValid(accountsInfo, teamLimits)
def check(self, rosters, team, teamLimits): return isTeamValid(self._getAccountsInfo(rosters, team), teamLimits)