#NEWLINE# def test_works_with_referrers_with_no_q_get_param( self ) : #NEWLINE# #INDENT# text = 'This is some text' #NEWLINE# ( request , context ) = generate_random_request_and_context ( '' , url_template = 'http://localhost/%s' , match = '' ) #NEWLINE# node = text_helpers . HighlightedSearchTermNode ( 'text' ) #NEWLINE# result = node . render ( { #NEWLINE# #INDENT# 'text' : text , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( text , result )