@bdd.then(bdd.parsers.parse('the javascript message "{message}" should be logged'))
def javascript_message_logged(quteproc, message):
 quteproc.wait_for_js(message)

@ bdd . then ( bdd . parsers . parse ( 'the javascript message "{message}" should be logged' ) ) def javascript_message_logged ( quteproc , message ) : quteproc . wait_for_js ( message )
make sure the given message was logged via javascript .