From: Josh Roesslein Date: Tue, 18 Aug 2009 21:06:13 +0000 (-0500) Subject: Tests fixes. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=07026628dfd96c2be5ac0628d1104cb022a4c68d;p=tweepy.git Tests fixes. --- 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