From 012da2d2d8fbad723e2af8a904f52ee729b52e49 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Sun, 22 Dec 2013 07:01:32 -0500 Subject: [PATCH] Fix update_with_media test Twitter puts a t.co link in the tweet --- tests/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_api.py b/tests/test_api.py index 9a4c0d9..2eec4ac 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -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') -- 2.25.1