'Helper function for test_real_escape*.'

def _test_escape(self, text, qtbot, webframe):

    try:
        self._test_escape_simple(text, webframe)
    except AssertionError:
        self._test_escape_hexlified(text, qtbot, webframe)
