#NEWLINE# def test_list_events( self ) : #NEWLINE# #INDENT# ManagerElasticsearch . search_events = response . _mock_es_search #NEWLINE# response = self . client . events . list ( ) #NEWLINE# total = self . _mock_es_search ( ) [ 'hits' ] [ 'total' ] #NEWLINE# hits = self . _mock_es_search ( ) [ 'hits' ] [ 'hits' ] #NEWLINE# self . assertEquals ( total , response . metadata . pagination . total ) #NEWLINE# self . assertEquals ( len ( hits ) , len ( response . items ) )