Update tests.
authorJosh Roesslein <jroesslein@gmail.com>
Wed, 14 Oct 2009 22:18:24 +0000 (17:18 -0500)
committerJosh Roesslein <jroesslein@gmail.com>
Wed, 14 Oct 2009 22:18:24 +0000 (17:18 -0500)
tests.py

index 4c30a6a82b3b69805a0e3bf13e76d2c0bd426f29..e09ce1b3bd3b89a7bcf8184e2b74a2c06b174b77 100644 (file)
--- a/tests.py
+++ b/tests.py
@@ -122,7 +122,7 @@ class TweepyAPITests(unittest.TestCase):
 
     def testupdateprofilecolors(self):
         original = self.api.me()
-        updated = self.api.update_profile_colors('#fff', '#fff', '#fff', '#fff', '#fff')
+        updated = self.api.update_profile_colors('#000', '#000', '#000', '#000', '#000')
 
         # restore colors
         self.api.update_profile_colors(
@@ -133,11 +133,11 @@ class TweepyAPITests(unittest.TestCase):
             original.profile_sidebar_border_color
         )
 
-        self.assertEqual(updated.profile_background_color, '#fff')
-        self.assertEqual(updated.profile_text_color, '#fff')
-        self.assertEqual(updated.profile_link_color, '#fff')
-        self.assertEqual(updated.profile_sidebar_fill_color, '#fff')
-        self.assertEqual(updated.profile_sidebar_border_color, '#fff')
+        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')
 
     def testupateprofileimage(self):
         self.api.update_profile_image('examples/profile.png')
@@ -190,12 +190,12 @@ class TweepyAPITests(unittest.TestCase):
 
     def testsavedsearches(self):
         s = self.api.create_saved_search('test')
-        self.assertEqual(self.api.get_saved_search(s.id).query, 'test')
         self.api.saved_searches()
+        self.assertEqual(self.api.get_saved_search(s.id).query, 'test')
         self.api.destroy_saved_search(s.id)
 
     def testsearch(self):
-        self.api.search('test')
+        self.api.search('tweepy')
 
     def testtrends(self):
         self.api.trends()