#NEWLINE# def test_data_returns_is_marked_as_safe( self ) : #NEWLINE# #INDENT# text = 'This is some text' #NEWLINE# ( request , context ) = generate_random_request_and_context ( text ) #NEWLINE# node = text_helpers . HighlightedSearchTermNode ( 'text' ) #NEWLINE# result = node . render ( context ) #NEWLINE# self . assertIsInstance ( result , SafeData )