From 07026628dfd96c2be5ac0628d1104cb022a4c68d Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Tue, 18 Aug 2009 16:06:13 -0500 Subject: [PATCH] Tests fixes. --- tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests.py b/tests.py index 4d865de..6fe28c0 100644 --- a/tests.py +++ b/tests.py @@ -19,7 +19,7 @@ password = '' class TweepyAPITests(unittest.TestCase): def setUp(self): - self.api = API(BasicAuthHandler(username, password), username) + self.api = API(BasicAuthHandler(username, password)) def testpublictimeline(self): self.assertEqual(len(self.api.public_timeline()), 20) @@ -30,7 +30,7 @@ class TweepyAPITests(unittest.TestCase): def testusertimeline(self): s = self.api.user_timeline(screen_name='twitter') self.assert_(len(s) > 0) - self.assertEqual(s[0].user.screen_name, 'twitter') + self.assertEqual(s[0].author.screen_name, 'twitter') def testmentions(self): s = self.api.mentions() @@ -39,7 +39,7 @@ class TweepyAPITests(unittest.TestCase): def testgetstatus(self): s = self.api.get_status(id=123) - self.assertEqual(s.user.id, 17) + self.assertEqual(s.author.id, 17) def testupdateanddestroystatus(self): # test update -- 2.25.1