summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorjvoisin2014-01-10 22:00:37 +0000
committerjvoisin2014-01-10 22:00:37 +0000
commit5e65094084c75a9372f529a3387b072a84bf254a (patch)
tree769678018e07e505dcf2d9280454d1868202d58e /test
parent33c8cd04a791402a407a5125300b524986035f2a (diff)
Add tar.gz files to the testsuite
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 '''