

def wait_for_file_uploaded(self, name, maxwait=60):
    for _ in range(maxwait):
        time.sleep(1)
        if self._has_uploaded_file_rtm(maxwait):
            break
    else:
        raise AssertionError('expected to get file "{}", but got nothing'.format(name))

dataset/ETHPy150Open lins05/slackbot/tests/functional/driver.py Driver.wait_for_file_uploaded/VarMisuse@38/52 `name`->`maxwait`