def upgradeStore(self, store): """ Recursively upgrade C{store}. """ self.upgradeEverything(store) for substore in store.query(SubStore): self.upgradeStore(substore.open())
def upgradeStore(self, store): """ Recursively upgrade C{store}. """ self.upgradeEverything(store) upgradeExplicitOid(store) for substore in store.query(SubStore): print 'Upgrading: {!r}'.format(substore) self.upgradeStore(substore.open())
def test_delete(self): """ L{POP3Grabber.delete} unschedules the grabber. """ store = self.grabber.store iaxiom.IScheduler(store).schedule(self.grabber, extime.Time()) self.grabber.delete() # Can't query for the TimedEvent directly, but we know nothing *else* # was scheduled either. self.assertEqual( [], list(store.query(scheduler.TimedEvent)))
def txn(): item.touch() list(store.query(TestItem)) self.assertEquals(self.checkpointed, [item]) list(store.query(TestItem)) self.assertEquals(self.checkpointed, [item])
def txn(): item = TestItem(store=store) list(store.query(TestItem)) self.assertEquals(self.checkpointed, [item])