def testUnlock(self): fileLock = FileLock(self.fileName) fileLock.lock() self.assertTrue(fileLock.isLocked()) fileLock.unlock() self.assertTrue(not fileLock.isLocked())
def testLock(self): fileLock = FileLock(self.fileName) fileLock.lock()
def testInit(self): fileLock = FileLock(self.fileName)