@bdd.then(bdd.parsers.parse('the page should contain the plaintext "{text}"'))
def check_contents_plain(quteproc, text):
 content = quteproc.get_content().strip()
 assert (text in content)

@ bdd . then ( bdd . parsers . parse ( 'the page should contain the plaintext "{text}"' ) ) def check_contents_plain ( quteproc , text ) : content = quteproc . get_content ( ) . strip ( ) assert ( text in content )
check the current pages content based on a substring .