Example #1
0
 def test5_topHunderedFeeds_onlyTopNinetyNineFeedsAvailable_userGarryJones(
         self):
     user_id = 2732562482
     topK = 100
     all_tweets = main.getTopKFeedsFormatted(self.users, self.tweets,
                                             self.follows, user_id, topK)
     self.assertListEqual(all_tweets, expected_answer5)
Example #2
0
 def test4_topTwoFeeds_success_userCMUDatabaseGroup(self):
     user_id = 2252942868
     topK = 2
     all_tweets = main.getTopKFeedsFormatted(self.users, self.tweets,
                                             self.follows, user_id, topK)
     self.assertListEqual(all_tweets, expected_answer4)
Example #3
0
 def test2_topFiveFeeds_ZeroFeedAvailable_userBaptisteWicht(self):
     user_id = 113309454
     topK = 5
     all_tweets = main.getTopKFeedsFormatted(self.users, self.tweets,
                                             self.follows, user_id, topK)
     self.assertListEqual(all_tweets, expected_answer2)
Example #4
0
 def test3_topFourFeeds_success_userEvanJones(self):
     user_id = 989489610
     topK = 4
     all_tweets = main.getTopKFeedsFormatted(self.users, self.tweets,
                                             self.follows, user_id, topK)
     self.assertListEqual(all_tweets, expected_answer3)
Example #5
0
 def test1_topFiveFeeds_ZeroFollowing_userSteveYegge(self):
     user_id = 429567341
     topK = 5
     all_tweets = main.getTopKFeedsFormatted(self.users, self.tweets,
                                             self.follows, user_id, topK)
     self.assertListEqual(all_tweets, expected_answer1)