

def _wait_for_bot_message(self, channel, match, maxwait=60, tosender=True):
    for _ in range(maxwait):
        time.sleep(1)
        if self._has_got_message_rtm(channel, tosender, tosender):
            break
    else:
        raise AssertionError('expected to get message like "{}", but got nothing'.format(match))

dataset/ETHPy150Open lins05/slackbot/tests/functional/driver.py Driver._wait_for_bot_message/VarMisuse@46/61 `match`->`tosender`