Beispiel #1
0
 def setUp(self):
     self.path = os.path.join(gettempdir(), "wsgidav-locks.shelve")
     if os.path.exists(self.path):
         os.remove(self.path)
     storage = lock_storage.LockStorageShelve(self.path)
     self.lm = lock_manager.LockManager(storage)
     self.lm._verbose = 1
Beispiel #2
0
 def setUp(self):
     if sys.version_info < (3, 0):
         modifier = "-py2"  # shelve formats are incompatible
     else:
         modifier = "-py3"
     self.path = os.path.join(gettempdir(), "wsgidav-locks{}.shelve".format(modifier))
     storage = lock_storage.LockStorageShelve(self.path)
     self.lm = lock_manager.LockManager(storage)
     self.lm._verbose = 2