def setup_method(self, method): if platform.system() != 'Darwin': skip_if_no_fusermount() # We need this to test multi block operations self.src = __file__ if os.path.getsize(self.src) < 1048: raise RuntimeError("test file %s should be bigger than 1 KiB" % self.src) self.mnt_dir = tempfile.mkdtemp(prefix='s3ql-mnt-') self.cache_dir = tempfile.mkdtemp(prefix='s3ql-cache-') self.backend_dir = tempfile.mkdtemp(prefix='s3ql-backend-') self.storage_url = 'local://' + self.backend_dir self.passphrase = 'oeut3d' self.backend_login = None self.backend_passphrase = None self.mount_process = None self.name_cnt = 0
def setUp(self): if platform.system() != 'Darwin': skip_if_no_fusermount() # We need this to test multi block operations self.src = __file__ if os.path.getsize(self.src) < 1048: raise RuntimeError("test file %s should be bigger than 1 KiB" % self.src) self.mnt_dir = tempfile.mkdtemp(prefix='s3ql-mnt-') self.cache_dir = tempfile.mkdtemp(prefix='s3ql-cache-') self.backend_dir = tempfile.mkdtemp(prefix='s3ql-backend-') self.storage_url = 'local://' + self.backend_dir self.passphrase = 'oeut3d' self.backend_login = None self.backend_passphrase = None self.mount_process = None self.name_cnt = 0