Tweak create/destroy friendship test.
authorJoshua Roesslein <jroesslein@gmail.com>
Thu, 8 Nov 2012 04:40:26 +0000 (20:40 -0800)
committerJoshua Roesslein <jroesslein@gmail.com>
Thu, 8 Nov 2012 04:47:27 +0000 (20:47 -0800)
Added a bit of sleep time between destroy and create
requests to allow Twitter time to process.

[ci skip]

README.md
tests.py

index 6f2dffe15bebfb730e0e2741570e5c0d5cf6bcbe..c53a4cbb2c6d9a6da2ce8dc40318071f1de08229 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 Tweepy [![Build Status](https://travis-ci.org/tweepy/tweepy.png)](https://travis-ci.org/tweepy/tweepy)
 ======
-A Python library for accessing the Twitter API.
+*Twitter for Python!*
 
 Installation
 ------------
index bc7bad9934497b545cfa7e658b14538dabbfb9cf..b17d0fd39f53d969525e8baf51cca5f08efa875e 100644 (file)
--- a/tests.py
+++ b/tests.py
@@ -115,6 +115,10 @@ class TweepyAPITests(unittest.TestCase):
         enemy = self.api.destroy_friendship('twitter')
         self.assertEqual(enemy.screen_name, 'twitter')
 
+        # Wait 5 seconds to allow Twitter time
+        # to process the friendship destroy request.
+        sleep(5)
+
         friend = self.api.create_friendship('twitter')
         self.assertEqual(friend.screen_name, 'twitter')