From a1ee2a93ad654a463879831331663e26fe2d1638 Mon Sep 17 00:00:00 2001 From: Mike Helmick Date: Thu, 18 Jul 2013 20:57:31 -0400 Subject: [PATCH] Attempting to fix some tests that started breaking... --- tests/test_core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_core.py b/tests/test_core.py index 1de68f1..fe301d5 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -46,7 +46,7 @@ class TwythonAPITestCase(unittest.TestCase): """Test Twython generic POST request works, with a full url and with just an endpoint""" update_url = 'https://api.twitter.com/1.1/statuses/update.json' - status = self.api.post(update_url, params={'status': 'I love Twython!'}) + status = self.api.post(update_url, params={'status': 'I love Twython! %s' % int(time.time())}) self.api.post('statuses/destroy/%s' % status['id_str']) def test_get_lastfunction_header(self): @@ -148,7 +148,7 @@ class TwythonAPITestCase(unittest.TestCase): def test_update_and_destroy_status(self): """Test updating and deleting a status succeeds""" - status = self.api.update_status(status='Test post just to get deleted :(') + status = self.api.update_status(status='Test post just to get deleted :( %s' % int(time.time())) self.api.destroy_status(id=status['id_str']) def test_get_oembed_tweet(self): @@ -186,7 +186,7 @@ class TwythonAPITestCase(unittest.TestCase): """Test sending a direct message to someone who doesn't follow you fails""" self.assertRaises(TwythonError, self.api.send_direct_message, - screen_name=protected_twitter_2, text='Yo, man!') + screen_name=protected_twitter_2, text='Yo, man! %s' % int(time.time())) # Friends & Followers def test_get_user_ids_of_blocked_retweets(self):