def setUp(self):
    if os.path.isdir(self.local_storage_dir):
        shutil.rmtree(self.local_storage_dir)
    if os.path.isdir(self.medusa_bucket_dir):
        shutil.rmtree(self.medusa_bucket_dir)
    os.makedirs(self.local_storage_dir)
    config = configparser.ConfigParser(interpolation=None)
    config['storage'] = {'host_file_separator': ',', 'bucket_name': 'medusa_test_bucket', 'key_file': '', 'storage_provider': 'local', 'prefix': '', 'fqdn': '127.0.0.1', 'api_key_or_username': '', 'api_secret_or_password': '', 'base_path': '/tmp'}
    config['cassandra'] = {'is_ccm': 1}
    self.config = MedusaConfig(storage=_namedtuple_from_dict(StorageConfig, config['storage']), cassandra=_namedtuple_from_dict(CassandraConfig, config['cassandra']), monitoring={}, ssh=None, restore=None)
    self.storage = Storage(config=self.config.storage)
def setUp(self):
    if os.path.isdir(self.local_storage_dir):
        shutil.rmtree(self.local_storage_dir)
    if os.path.isdir(self.medusa_bucket_dir):
        shutil.rmtree(self.medusa_bucket_dir)
    os.makedirs(self.local_storage_dir)
    config = configparser.ConfigParser(interpolation=None)
    config['storage'] = {'host_file_separator': ',', 'bucket_name': 'medusa_test_bucket', 'key_file': , 'storage_provider': 'local', 'prefix': , 'fqdn': '127.0.0.1', 'api_key_or_username': , 'api_secret_or_password': , 'base_path': '/tmp'}
    config['cassandra'] = {'is_ccm': 1}
    self.config = MedusaConfig(storage=_namedtuple_from_dict(StorageConfig, config['storage']), cassandra=_namedtuple_from_dict(CassandraConfig, config['cassandra']), monitoring={}, ssh=None, restore=None)
    self.storage = Storage(config=self.config.storage)