summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/libtest.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/libtest.py b/test/libtest.py
index 452ed57..0b45505 100644
--- a/test/libtest.py
+++ b/test/libtest.py
@@ -130,6 +130,20 @@ class TestArchiveProcessing(test.MATTest):
130 current_file = MAT.mat.create_class_file(tarpath, False, add2archive=False) 130 current_file = MAT.mat.create_class_file(tarpath, False, add2archive=False)
131 self.assertTrue(current_file.is_clean()) 131 self.assertTrue(current_file.is_clean())
132 132
133 def test_remove_gz(self):
134 ''' Test MAT on tar.gz files
135 '''
136 tarpath = os.path.join(self.tmpdir, "test.tar.gz")
137 tar = tarfile.open(tarpath, "w")
138 for clean,dirty in self.file_list:
139 tar.add(dirty)
140 tar.add(clean)
141 tar.close()
142 current_file = MAT.mat.create_class_file(tarpath, False, add2archive=False)
143 current_file.remove_all()
144 current_file = MAT.mat.create_class_file(tarpath, False, add2archive=False)
145 self.assertTrue(current_file.is_clean())
146
133 def test_get_unsupported(self): 147 def test_get_unsupported(self):
134 ''' Test the get_unsupported feature, used by the GUI 148 ''' Test the get_unsupported feature, used by the GUI
135 ''' 149 '''