'Verifies that the table footer contains `expected`.
With table footer can be described as any <td>-element that is
child of a <tfoot>-element.  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_footer_should_contain(self, table_locator, expected, loglevel='INFO'):

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