def testGetTime(self):
     timedDict = TimedDictionary(TWO_HOURS)
     timedDict[1] = SomeObject('id1')
     with stderr_replaced():
         self.assertTrue(time() - timedDict.getTime(1) < 2.0)
 def testGetTime(self):
     timedDict = TimedDictionary(TWO_HOURS)
     timedDict[1] = SomeObject('id1')
     with stderr_replaced():
         self.assertTrue(time() - timedDict.getTime(1) < 2.0)