Skip to content

Commit

Permalink
Fix more broken tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshthecoder committed Jan 29, 2013
1 parent 4af1c72 commit acfee89
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from nose import SkipTest

from tweepy import (API, BasicAuthHandler, OAuthHandler, Friendship, Cursor,
from tweepy import (API, OAuthHandler, Friendship, Cursor,
MemoryCache, FileCache)

"""Configurations"""
Expand Down Expand Up @@ -177,11 +177,11 @@ def testupdateprofilecolors(self):
original.profile_sidebar_border_color
)

self.assertEqual(updated.profile_background_color, '000')
self.assertEqual(updated.profile_text_color, '000')
self.assertEqual(updated.profile_link_color, '000')
self.assertEqual(updated.profile_sidebar_fill_color, '000')
self.assertEqual(updated.profile_sidebar_border_color, '000')
self.assertEqual(updated.profile_background_color, '000000')
self.assertEqual(updated.profile_text_color, '000000')
self.assertEqual(updated.profile_link_color, '000000')
self.assertEqual(updated.profile_sidebar_fill_color, '000000')
self.assertEqual(updated.profile_sidebar_border_color, '000000')

"""
def testupateprofileimage(self):
Expand Down Expand Up @@ -331,17 +331,17 @@ def testpagecursorpages(self):
self.assert_(len(pages) == 5)

def testcursorcursoritems(self):
items = list(Cursor(self.api.friends).items())
items = list(Cursor(self.api.friends_ids).items())
self.assert_(len(items) > 0)

items = list(Cursor(self.api.followers, 'twitter').items(30))
items = list(Cursor(self.api.followers_ids, 'twitter').items(30))
self.assert_(len(items) == 30)

def testcursorcursorpages(self):
pages = list(Cursor(self.api.friends).pages())
pages = list(Cursor(self.api.friends_ids).pages())
self.assert_(len(pages) > 0)

pages = list(Cursor(self.api.followers, 'twitter').pages(5))
pages = list(Cursor(self.api.followers_ids, 'twitter').pages(5))
self.assert_(len(pages) == 5)

class TweepyAuthTests(unittest.TestCase):
Expand Down

0 comments on commit acfee89

Please sign in to comment.