From f9b381105d4ca249b85522107ddedd8c1368c32e Mon Sep 17 00:00:00 2001 From: Yuri Prezument Date: Mon, 1 Dec 2014 15:53:27 +0200 Subject: [PATCH] Regression test for #518 --- tests/test_cursors.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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') -- 2.25.1