#NEWLINE# def test_dash_issue( self ) : #NEWLINE# #INDENT# HTML = '<strong>&#151;</strong>' #NEWLINE# self . server . response [ 'get.data' ] = HTML #NEWLINE# g = build_grab ( ) #NEWLINE# g . go ( self . server . get_url ( ) ) #NEWLINE# self . assertFalse ( ( g . xpath_one ( '//strong/text()' ) == six . unichr ( 151 ) ) ) #NEWLINE# self . assertTrue ( ( g . xpath_one ( '//strong/text()' ) == six . unichr ( 8212 ) ) ) #NEWLINE# g . setup ( fix_special_entities = False ) #NEWLINE# g . go ( self . server . get_url ( ) ) #NEWLINE# self . assertTrue ( ( g . xpath_one ( '//strong/text()' ) == six . unichr ( 151 ) ) ) #NEWLINE# self . assertFalse ( ( g . xpath_one ( '//strong/text()' ) == six . unichr ( 8212 ) ) ) #NEWLINE# g = build_grab ( ) #NEWLINE# g . go ( self . server . get_url ( ) ) #NEWLINE# print ( ':::' , g . response . unicode_body ( ) ) #NEWLINE# self . assertTrue ( ( '&#8212;' in g . response . unicode_body ( ) ) )