'Verifies that `expected` can be found somewhere in the table.
To understand how tables are identified, please take a look at
the `introduction`.
See `Page Should Contain Element` for explanation about
`loglevel` argument.'

@keyword
def table_should_contain(self, table_locator, expected, loglevel='INFO'):

    element = self._table_element_finder.find_by_content(table_locator, expected)
    if (element is None):
        self.ctx.log_source(loglevel)
        raise AssertionError(("Table    identified    by    '%s'    should    have    contained    text    '%s'." % (table_locator, expected)))
