

def _has_uploaded_file_rtm(self, name):
    with self._events_lock:
        for event in self.events:
            if ((event['type'] == 'file_shared') and (event['file']['name'] == name) and (event['file']['user'] == self.testbot_userid)):
                return True
        return False

dataset/ETHPy150Open lins05/slackbot/tests/functional/driver.py Driver._has_uploaded_file_rtm/original