#NEWLINE# def test_with_highlights( self ) : #NEWLINE# #INDENT# form = SimpleSearchForm ( { #NEWLINE# #INDENT# 'q' : 'foo' , #NEWLINE# #UNINDENT# } ) #NEWLINE# ok_ ( form . is_valid ( ) ) #NEWLINE# s = generate_simple_search ( form , 'en-US' , with_highlights = True ) #NEWLINE# ok_ ( ( 'highlight' in s . build_search ( ) ) ) #NEWLINE# s = generate_simple_search ( self , 'en-US' , with_highlights = False ) #NEWLINE# ok_ ( ( 'highlight' not in s . build_search ( ) ) )