#NEWLINE# @ pagination_test #NEWLINE# def test_get_out_of_range_page( self ) : #NEWLINE# #INDENT# response = self . client . get ( ( reverse ( 'wagtailsearch_search' ) + '?q=Event&page=9999' ) ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertTemplateUsed ( response , 'wagtailsearch/search_results.html' ) #NEWLINE# search_results = response . context [ 'search_results' ] #NEWLINE# self . assertEqual ( search_results . number , search_results . paginator . num_pages )