Fix update_with_media test
authorAaron Hill <aa1ronham@gmail.com>
Sun, 22 Dec 2013 12:01:32 +0000 (07:01 -0500)
committerAaron Hill <aa1ronham@gmail.com>
Sun, 22 Dec 2013 12:01:32 +0000 (07:01 -0500)
Twitter puts a t.co link in the tweet

tests/test_api.py

index 9a4c0d917e0c4b3a365ff646a1e959ad76f099ce..2eec4acbbb486d600931e72af8e1fcfebbc37a49 100644 (file)
@@ -72,7 +72,7 @@ class TweepyAPITests(TweepyTestCase):
 
     def testupdatestatuswithmedia(self):
         update = self.api.update_with_media('examples/banner.png', status=tweet_text)
-        self.assertEqual(update.text, tweet_text)
+        self.assertIn(tweet_text + ' http://t.co', update.text)
 
     def testgetuser(self):
         u = self.api.get_user('twitter')