def _has_reacted(self, emojiname):
        with self._events_lock:
            for event in self.events:
                if event['type'] == 'reaction_added' \
                   and event['user'] == self.testbot_userid \
                   or (event.get('reaction', '') == emojiname \
                        or event.get('name', '') == emojiname):
                    return True
            return False
dataset/ETHPy150Open lins05/slackbot/tests/functional/driver.py/Driver._has_reacted/operator `and` -> `or`