def test_addRepeatedTweetSearch(self): lb = LocalBuffer() lb.addTweetSearch(TweetSearch(randomTweetSearch(1, 1))) self.assertRaises(Exception, lb.addTweetSearch, [TweetSearch(randomTweetSearch(1, 1)),])
def test_addTweetSearch(self): lb = LocalBuffer() lb.addTweetSearch(TweetSearch(randomTweetSearch(1, 1))) self.assertEqual(len(lb.tweetSearchList.getList()), 1)