def test_top_n_users_empty_when_none_within_k_days(self): l = cache.get_top_n_users_k_days(1, 5) assert l == []
def test_get_top_n_users_k_days_returns_empty_list_when_no_data(self): l = cache.get_top_n_users_k_days(1, 10) assert l == []
def test_top_n_users_returned_when_within_k_days(self): l = cache.get_top_n_users_k_days(1, 6) assert l[0]['fullname'] == self.user.fullname