def assertTextPresent(self, text): """ Asserts that the text is present on the current page """ self.assertIn(html_norm(escape(text)), html_norm(self.last_response.content.decode('utf-8')))