def test_empty(self):
        # Specify two thing that we happen to know will return 0 results
        def pretend_fetcher(page, per_page):
            return []
        
        ri = BatchedResultsIterator(entity=model.Shoe, result_fetcher=pretend_fetcher)
        results = list(ri)
        self.assertEquals(0, len(results))
Test iterating over empty results.
dataset/ETHPy150Open hozn/stravalib/stravalib/tests/functional/test_result_iterator.py/ResultIteratorTest.test_empty