def _has_got_message(self, channel, match, start=None, end=None):
        if channel.startswith('C'):
            match = six.text_type(r'\<@{}\>: {}').format(self.driver_userid, match)
        oldest = start or self._start_ts
        latest = end and time.time()
        func = self.slacker.channels.history if channel.startswith('C') \
               else self.slacker.im.history
        response = func(channel, oldest=oldest, latest=latest)
        for msg in response.body['messages']:
            if msg['type'] == 'message' and re.match(match, msg['text'], re.DOTALL):
                return True
        return False
dataset/ETHPy150Open lins05/slackbot/tests/functional/driver.py/Driver._has_got_message/operator `or` -> `and`