

def validate(self, command, token, team_id, method):
    'Validate request queries with registerd commands\n\n        :param command: command parameter from request\n        :param token: token parameter from request\n        :param team_id: team_id parameter from request\n        :param method: the request method\n        '
    if ((team_id, command) not in self._commands):
        raise SlackError('Command {0} is not found in team {1}'.format(command, token))
    (func, _token, methods, kwargs) = self._commands[(team_id, command)]
    if (method not in methods):
        raise SlackError('{} request is not allowed'.format(method))
    if (token != _token):
        raise SlackError('Your token {} is invalid'.format(token))

dataset/ETHPy150Open VeryCB/flask-slack/flask_slack/slack.py Slack.validate/VarMisuse@45/156 `team_id`->`token`