Some test changes.
authorJosh Roesslein <jroesslein@gmail.com>
Wed, 14 Oct 2009 17:54:24 +0000 (12:54 -0500)
committerJosh Roesslein <jroesslein@gmail.com>
Wed, 14 Oct 2009 17:54:24 +0000 (12:54 -0500)
tests.py

index 14a6280561cacfc06be8409f907f034d407c6465..1b1f080b204e19798f424394853407429a710d66 100644 (file)
--- a/tests.py
+++ b/tests.py
@@ -21,6 +21,8 @@ class TweepyAPITests(unittest.TestCase):
 
     def setUp(self):
         self.api = API(BasicAuthHandler(username, password))
+        self.api.retry_count = 2
+        self.api.retry_delay = 5
 
     def testpublictimeline(self):
         self.api.public_timeline()
@@ -159,6 +161,7 @@ class TweepyAPITests(unittest.TestCase):
         )
 
         for k,v in profile.items():
+            if k == 'email': continue
             self.assertEqual(getattr(updated, k), v)
 
     def testfavorites(self):
@@ -177,6 +180,7 @@ class TweepyAPITests(unittest.TestCase):
         self.assertEqual(self.api.exists_block('twitter'), True)
         self.api.destroy_block('twitter')
         self.assertEqual(self.api.exists_block('twitter'), False)
+        self.api.create_friendship('twitter') # restore
 
     def testblocks(self):
         self.api.blocks()