@bdd.then(bdd.parsers.parse('the completion model should be {model}'))
def check_model(quteproc, model):
 pattern = 'Setting completion model to {} with pattern *'.format(model)
 quteproc.wait_for(message=pattern)

@ bdd . then ( bdd . parsers . parse ( 'the completion model should be {model}' ) ) def check_model ( quteproc , model ) : pattern = 'Setting completion model to {} with pattern *' . format ( model ) quteproc . wait_for ( message = pattern )
make sure the completion model was set to something .