'Verifies that current page contains `text`.
If this keyword fails, it automatically logs the page source
using the log level specified with the optional `loglevel` argument.
Valid log levels are DEBUG, INFO (default), WARN, and NONE. If the
log level is NONE or below the current active log level the source
will not be logged.'

@keyword
def page_should_contain(self, text, loglevel='INFO'):

    if (not self._page_contains(text)):
        self.ctx.log_source(loglevel)
        raise AssertionError(("Page    should    have    contained    text    '%s'    but    did    not" % text))
    self.info(("Current    page    contains    text    '%s'." % text))
