Esempio n. 1
0
	def testCheckLogCreation(self):
		x = Checkpoint(TestCheckpoint.TEST_DIR)
		
		x.createCheckpointLog(TestCheckpoint.TEST_KEY)
		self.assertTrue(TestCheckpoint.TEST_KEY in x.getCheckpointLogKeys())

		x.releaseCheckpointLog(TestCheckpoint.TEST_KEY)
		self.assertFalse(TestCheckpoint.TEST_KEY in x.getCheckpointLogKeys())
Esempio n. 2
0
    def testCheckLogCreation(self):
        x = Checkpoint(TestCheckpoint.TEST_DIR)

        x.createCheckpointLog(TestCheckpoint.TEST_KEY)
        self.assertTrue(TestCheckpoint.TEST_KEY in x.getCheckpointLogKeys())

        x.releaseCheckpointLog(TestCheckpoint.TEST_KEY)
        self.assertFalse(TestCheckpoint.TEST_KEY in x.getCheckpointLogKeys())