예제 #1
0
 def test_one_tweet(self):
     case1 = original_three_tweets()[:1]
     case1_test = MedianCalculator(case1)
     assert case1_test.populate_median_list()[-1] == 11
예제 #2
0
 def test_two_cumulative_tweets(self):
     case2 = original_three_tweets()[:2]
     case2_test = MedianCalculator(case2)
     assert case2_test.populate_median_list()[-1] == 12.5
예제 #3
0
 def test_three_cumulative_tweets(self):
     case3 = original_three_tweets()
     case3_test = MedianCalculator(case3)
     assert case3_test.populate_median_list()[-1] == 14