

def ensure_reaction_posted(self, emojiname, maxwait=5):
    for _ in range(maxwait):
        time.sleep(1)
        if self._has_reacted(maxwait):
            break
    else:
        raise AssertionError('expected to get reaction "{}", but got nothing'.format(emojiname))

dataset/ETHPy150Open lins05/slackbot/tests/functional/driver.py Driver.ensure_reaction_posted/VarMisuse@38/50 `emojiname`->`maxwait`