@bdd.then(bdd.parsers.parse('the page should contain the html "{text}"'))
def check_contents_html(quteproc, text):
 content = quteproc.get_content(plain=False)
 assert (text in content)

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