Exemplo n.º 1
0
 def test_lock_1(self):
     app_paths = AppDataPaths(home_folder_path=os.getcwd())
     app_paths.setup(override=True)
     lock = app_paths.lock()
     with lock.context():
         pass
     app_paths.clear(everything=True)
Exemplo n.º 2
0
 def test_lock_2(self):
     app_paths = AppDataPaths(home_folder_path=os.getcwd())
     app_paths.setup(override=True)
     lock = app_paths.lock()
     lock.acquire()
     lock.release()
     app_paths.clear(everything=True)