@bdd.when(bdd.parsers.re('I wait for the (?P<category>error|message|warning) "(?P<message>.*)"'))
def wait_for_message(quteproc, httpbin, category, message):
 quteproc.log_summary('Waiting for {} "{}"'.format(category, message))
 expect_message(quteproc, httpbin, category, message)

@ bdd . when ( bdd . parsers . re ( 'I wait for the (?P<category>error|message|warning) "(?P<message>.*)"' ) ) def wait_for_message ( quteproc , httpbin , category , message ) : quteproc . log_summary ( 'Waiting for {} "{}"' . format ( category , message ) ) expect_message ( quteproc , httpbin , category , message )
wait for a given statusbar message/error/warning .