@staticmethod<EOL><INDENT>def until(method, timeout = <NUM_LIT:30>, message='<STR_LIT>'):<DEDENT>
end_time = time.time() + timeout<EOL>while True:<EOL><INDENT>try:<EOL><INDENT>value = method()<EOL>if value:<EOL><INDENT>return value<EOL><DEDENT><DEDENT>except:<EOL><INDENT>pass            <EOL><DEDENT>time.sleep(<NUM_LIT:1>)<EOL>if time.time() > end_time:<EOL><INDENT>break<EOL><DEDENT><DEDENT>raise Exception(message)<EOL>
Calls the method until the return value is not False.