コード例 #1
0
 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))
コード例 #2
0
 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))