def test_render_cannotcopy_as_html_escapes_error(self): # render_cannotcopy_as_html escapes error messages. message = "x<>y" html_text = render_cannotcopy_as_html(CannotCopy(message)).escapedtext self.assertNotIn(message, html_text) self.assertIn("x<>y", html_text)
def test_render_cannotcopy_as_html_escapes_error(self): # render_cannotcopy_as_html escapes error messages. message = "x<>y" html_text = render_cannotcopy_as_html(CannotCopy(message)).escapedtext self.assertNotIn(message, html_text) self.assertIn("x<>y", html_text)
def test_render_cannotcopy_as_html_lists_errors(self): # render_cannotcopy_as_html includes a CannotCopy error message # into its HTML notice. message = self.getUniqueString() html_text = render_cannotcopy_as_html(CannotCopy(message)).escapedtext self.assertIn(message, html_text)
def test_render_cannotcopy_as_html_lists_errors(self): # render_cannotcopy_as_html includes a CannotCopy error message # into its HTML notice. message = self.getUniqueString() html_text = render_cannotcopy_as_html(CannotCopy(message)).escapedtext self.assertIn(message, html_text)