from __future__ import unicode_literals import pytest import html5lib html = '''
Return a truncated copy of the string. The length is specified with the first parameter which defaults to 255. If the second parameter is true the filter will cut the text at length. Otherwise it will discard the last word. If the text was in fact truncated it will append an ellipsis sign ("..."). If you want a different ellipsis sign than "..." you can specify it using the third parameter.
''' @pytest.fixture def etree(): return html5lib.parse(html)