def test_timeSeries_valid(self): """test that timeSeries contains 25 new entries whose keys are an ID36 and other values are 0 """ m_r.get_new_posts(self.timeSeries, self.updateQueue) self.assertEqual(25, len(self.timeSeries)) for item in self.timeSeries.keys(): self.assertEqual("t3_", item[:3]) self.assertEqual(8, len(item))
def test_updateQueue_valid(self): """test that updateQueue contains the 25 new entries and priority is determined by utc""" self.timeSeries = {} self.updateQueue = [] m_r.get_new_posts(self.timeSeries, self.updateQueue) self.assertEqual(25, len(self.updateQueue))