def test_get_all_recent_hot_topics_failed(self): today = datetime.date(2000,1,1) topic_check = Topics_model.db_get_all_recent_hot_topics(today) self.assertEqual([],topic_check)
def db2_get_all_latest_topics(date_input): topic_list = Topics_model.db_get_all_recent_hot_topics(date_input) return topic_list
def test_get_all_recent_hot_topics(self): today = datetime.date.today() topic_check = Topics_model.db_get_all_recent_hot_topics(today) self.assertIsNotNone(topic_check)