from time import sleep
import os
-from tweepy import *
+from tweepy import (API, BasicAuthHandler, OAuthHandler, Friendship, Cursor,
+ MemoryCache, FileCache)
"""Configurations"""
# Must supply twitter account credentials for tests
self.api.retweets(123)
def testgetstatus(self):
- s = self.api.get_status(id=123)
+ self.api.get_status(id=123)
def testupdateanddestroystatus(self):
# test update
if __name__ == '__main__':
unittest.main()
-
from tweepy.binder import bind_api
from tweepy.error import TweepError
-from tweepy.parsers import ModelParser, RawParser
+from tweepy.parsers import ModelParser
from tweepy.utils import list_to_csv
try:
if os.path.getsize(filename) > (max_size * 1024):
raise TweepError('File is too big, must be less than 700kb.')
- except os.error, e:
+ except os.error:
raise TweepError('Unable to access file')
# image must be gif, jpeg, or png