From 8cc28e5e6f1d9070de165bd8026d431e49ecf3ab Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Thu, 15 Oct 2009 18:52:18 -0500 Subject: [PATCH] Test updates. --- tests.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests.py b/tests.py index 645d1ec..ed50dc3 100644 --- a/tests.py +++ b/tests.py @@ -168,8 +168,8 @@ class TweepyAPITests(unittest.TestCase): self.api.favorites() def testcreatedestroyfavorite(self): - self.api.create_favorite(4857050091) - self.api.destroy_favorite(4857050091) + self.api.create_favorite(4901062372) + self.api.destroy_favorite(4901062372) def testenabledisablenotifications(self): self.api.enable_notifications('twitter') @@ -257,14 +257,16 @@ class TweepyAuthTests(unittest.TestCase): # build api object test using oauth api = API(auth) - api.update_status('test %i' % random.randint(0, 1000)) + s = api.update_status('test %i' % random.randint(0, 1000)) + api.destroy_status(s.id) def testbasicauth(self): auth = BasicAuthHandler(username, password) # test accessing twitter API api = API(auth) - api.update_status('test %i' % random.randint(1, 1000)) + s = api.update_status('test %i' % random.randint(1, 1000)) + api.destroy_status(s.id) class TweepyCacheTests(unittest.TestCase): -- 2.25.1