#NEWLINE# @ patch ( 'pyrax.manager.BaseManager.list' ) #NEWLINE# def test_pagination_mgr_list( self , mock_list ) : #NEWLINE# #INDENT# pm = _PaginationManager ( self . client ) #NEWLINE# limit = utils . random_unicode ( ) #NEWLINE# marker = utils . random_unicode ( ) #NEWLINE# return_next = False #NEWLINE# ents = utils . random_unicode ( ) #NEWLINE# mock_list . return_value = ents #NEWLINE# ret = pm . list ( limit = limit , marker = marker , return_next = return_next ) #NEWLINE# mock_list . assert_called_once_with ( limit = limit , marker = marker ) #NEWLINE# self . assertEqual ( ret , ents )