<s> from __future__ import unicode_literals <EOL> from ftfy import fix_text , fix_text_segment <EOL> from nose . tools import eq_ <EOL> def test_entities ( ) : <EOL> example = '<STR_LIT>' <EOL> eq_ ( fix_text ( example ) , '<STR_LIT>' ) <EOL> eq_ ( fix_text_segment ( example ) , '<STR_LIT>' ) <EOL> eq_ ( fix_text ( example , fix_entities = True ) , '<STR_LIT>' ) <EOL> eq_ ( fix_text_segment ( example , fix_entities = True ) , '<STR_LIT>' ) <EOL> eq_ ( fix_text ( example , fix_entities = False ) , '<STR_LIT>' ) <EOL> eq_ ( fix_text_segment ( example , fix_entities = False ) , '<STR_LIT>' ) <EOL> eq_ ( fix_text_segment ( '<STR_LIT>' , fix_entities = False ) , '<STR_LIT>' ) <EOL> eq_ ( fix_text_segment ( '<STR_LIT>' , fix_entities = True ) , '<STR_LIT>' ) <EOL> eq_ ( fix_text_segment ( '<STR_LIT>' ) , '<STR_LIT>' ) </s>
