From: Yuri Prezument Date: Mon, 1 Dec 2014 13:53:27 +0000 (+0200) Subject: Regression test for #518 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f9b381105d4ca249b85522107ddedd8c1368c32e;p=tweepy.git Regression test for #518 --- diff --git a/tests/test_cursors.py b/tests/test_cursors.py index e197b90..4c1b10b 100644 --- a/tests/test_cursors.py +++ b/tests/test_cursors.py @@ -43,3 +43,13 @@ class TweepyCursorTests(TweepyTestCase): self.assertEqual(c.iterator.next_cursor, 123456) self.assertFalse('cursor' in c.iterator.kargs) + @tape.use_cassette('testcursornext.json') + def testcursornext(self): + """ + Test cursor.next() behavior, id being passed correctly. + Regression test for issue #518 + """ + cursor = Cursor(self.api.user_timeline, id='twitter').items(5) + status = cursor.next() + + self.assertEquals(status.user.screen_name, 'twitter')