#NEWLINE# def test_matches_numbers( self ) : #NEWLINE# #INDENT# text = 'This is some0text' #NEWLINE# match = '0text' #NEWLINE# ( request , context ) = generate_random_request_and_context ( text , match = match ) #NEWLINE# node = text_helpers . HighlightedSearchTermNode ( 'text' ) #NEWLINE# result = node . render ( context ) #NEWLINE# expected = 'This is some<span class="search_term">0text</span>' #NEWLINE# self . assertEqual ( expected , result )