def test_no_users_returned_from_top_0_percent(self): n = cache.get_top_n_percent(0) assert n == 0
def test_get_top_n_percent_returns_zero_when_no_data(self): n = cache.get_top_n_percent(20) assert n == 0
def test_all_users_returned_from_top_100_percent(self): n = cache.get_top_n_percent(100) assert n == 1