コード例 #1
0
def generateManyTweets(randomTweets, userId):
    tweetList = ObjectList()
    for i in range(0, randomTweets):
        tweet = Tweet(randomTweet(i, "1-10-2013", userId))
        tweetList.append(tweet)
    return tweetList
コード例 #2
0
def generateOneTweet(tweetId, userId):
    tweet = Tweet(randomTweet(tweetId, "1-10-2013", userId))
    tweetList = ObjectList()
    tweetList.append(tweet)
    return tweetList