コード例 #1
0
 def test_no_users_returned_from_top_0_percent(self):
     n = cache.get_top_n_percent(0)
     assert n == 0
コード例 #2
0
 def test_get_top_n_percent_returns_zero_when_no_data(self):
     n = cache.get_top_n_percent(20)
     assert n == 0
コード例 #3
0
 def test_all_users_returned_from_top_100_percent(self):
     n = cache.get_top_n_percent(100)
     assert n == 1