    def _validate(self):
        # type: () -> None
        '''Validates Slack API connection.'''
        response = self._api_call('api.test')
        if not response['ok']:
            raise ChatException('Unable to connect to Slack API.')
        logging.info('Connection to Slack API successful!')
Validates Slack API connection.
securitybot/chat/slack.py