#NEWLINE# def test_limit_iterator( self ) : #NEWLINE# #INDENT# ' Test setting the limit on the iterator. ' #NEWLINE# result_fetcher = functools . partial ( self . protocol . get , '/athlete/activities' ) #NEWLINE# results = BatchedResultsIterator ( entity = model . Activity , result_fetcher = result_fetcher , limit = 10 , per_page = 2 ) #NEWLINE# results . limit = 10 #NEWLINE# results = list ( results ) #NEWLINE# self . assertEquals ( 10 , len ( results ) )