#NEWLINE# def test_class_method_two_pages( self ) : #NEWLINE# #INDENT# self . mock_response ( { #NEWLINE# #INDENT# 'object' : 'list' , #NEWLINE# 'data' : [ { #NEWLINE# #INDENT# 'id' : 'ch_001' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# 'url' : '/v1/charges' , #NEWLINE# 'has_more' : False , #NEWLINE# #UNINDENT# } ) #NEWLINE# seen = [ item [ 'id' ] for item in stripe . Charge . auto_paging_iter ( limit = 25 , foo = 'bar' ) ] #NEWLINE# self . requestor_mock . request . assert_called_with ( 'get' , '/v1/charges' , { #NEWLINE# #INDENT# 'limit' : 25 , #NEWLINE# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( [ 'ch_001' ] , seen )