Commit 07026628 authored by Josh Roesslein's avatar Josh Roesslein
Browse files

Tests fixes.

parent 50008ba4
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment