format=self.tarfile_format,
max_volume_size=30000,
new_volume_handler=new_volume_handler)
+ tarobj.close()
def test_compress_single(self):
''' check creation of single volume when compression is on '''
assert os.path.exists("big")
assert hash == self.md5sum("big")
+ os.unlink('big')
+
def test_multivol_compress(self):
''' check creation of multiple volumes when compression is on '''
os.unlink('sample.tar')
os.unlink('sample.1.tar')
+ os.unlink(filename)
def test_volume_extract1(self):
'''
versions
"""
# params
- vol_size = 3 # MB
- input_size_factor = 3 # --> add 3*3 MB of data
+ vol_size = 3 # MiB
+ input_size_factor = 3 # --> add 3*3 MiB of data
modes = 'w#gz', 'w#gz.aes128'
debug_level = 0 # no debug output
clean_up_if_error = True # leave no files behind