#NEWLINE# def test_execute( self ) : #NEWLINE# #INDENT# s = self . get_s ( ) #NEWLINE# results = s . execute ( ) #NEWLINE# assert isinstance ( results , SearchResults ) #NEWLINE# cached = s . execute ( ) #NEWLINE# assert ( cached is results ) #NEWLINE# try : #NEWLINE# #INDENT# self . teardown_class ( ) #NEWLINE# self . create_index ( mappings = self . mapping ) #NEWLINE# self . refresh ( ) #NEWLINE# s = self . get_s ( ) #NEWLINE# results = s . execute ( ) #NEWLINE# assert isinstance ( results , SearchResults ) #NEWLINE# cached = s . execute ( ) #NEWLINE# assert ( cached is results ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# self . setup_class ( )