class TweepyCursorTests(TweepyTestCase):
@tape.use_cassette('testidcursoritems.json')
def testidcursoritems(self):
- items = list(Cursor(self.api.user_timeline).items(25))
- self.assertEqual(len(items), 25)
+ items = list(Cursor(self.api.user_timeline).items(2))
+ self.assertEqual(len(items), 2)
@tape.use_cassette('testidcursorpages.json')
def testidcursorpages(self):
- pages = list(Cursor(self.api.user_timeline).pages(5))
- self.assertEqual(len(pages), 5)
+ pages = list(Cursor(self.api.user_timeline, count=1).pages(2))
+ self.assertEqual(len(pages), 2)
@tape.use_cassette('testcursorcursoritems.json')
def testcursorcursoritems(self):
- items = list(Cursor(self.api.friends_ids).items(10))
- self.assertEqual(len(items), 10)
+ items = list(Cursor(self.api.friends_ids).items(2))
+ self.assertEqual(len(items), 2)
items = list(Cursor(self.api.followers_ids, username).items(1))
self.assertEqual(len(items), 1)