@bdd.then(bdd.parsers.parse('The session should look like:\n{expected}'))
def compare_session(request, quteproc, expected):
 quteproc.compare_session(expected)

@ bdd . then ( bdd . parsers . parse ( 'The session should look like:\n{expected}' ) ) def compare_session ( request , quteproc , expected ) : quteproc . compare_session ( expected )
compare the current sessions against the given template .