def METHOD_NAME(test, timeout=DEFAULT_TIMEOUT, interval=1):
    start_time = time.time()
    while (time.time() - start_time) < timeout:
        try:
            if test():
                return True
        except AssertionError:
            pass
        time.sleep(interval)
    return False