(self)
Removed expired tests
Removed expired tests
Removed expired tests
def clean(self):
        """Removed expired tests"""
        expiredIds = []
        now = time.time()
        for inst in self.storedInstances.itervalues():
            if inst.creationTime + self.lifetime < now:
                expiredIds.append(inst.id)
        for id in expiredIds:
            del self.storedInstances[id]
def clean ( self ) : expiredIds = [ ] now = time . time ( ) for inst in self . storedInstances . itervalues ( ) : if inst . creationTime + self . lifetime < now : expiredIds . append ( inst . id ) for id in expiredIds : del self . storedInstances [ id ]