summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjvoisin2018-10-03 16:11:40 +0200
committerjvoisin2018-10-03 16:38:05 +0200
commit84e302ac9394397c98845cbdb4334ab646f8ae4b (patch)
tree490e8e6e0b0ad8a1da3dc6de3cb02e4b5d2c7f84 /tests
parent7901fdef2eedeadf24368997b5164b6cacecefea (diff)
Remove file left behind by the testsuite
Diffstat (limited to 'tests')
-rw-r--r--tests/test_libmat2.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py
index 32ac059..957503d 100644
--- a/tests/test_libmat2.py
+++ b/tests/test_libmat2.py
@@ -233,6 +233,7 @@ class TestCleaning(unittest.TestCase):
233 233
234 os.remove('./tests/data/clean.pdf') 234 os.remove('./tests/data/clean.pdf')
235 os.remove('./tests/data/clean.cleaned.pdf') 235 os.remove('./tests/data/clean.cleaned.pdf')
236 os.remove('./tests/data/clean.cleaned.cleaned.pdf')
236 237
237 def test_png(self): 238 def test_png(self):
238 shutil.copy('./tests/data/dirty.png', './tests/data/clean.png') 239 shutil.copy('./tests/data/dirty.png', './tests/data/clean.png')
@@ -250,6 +251,7 @@ class TestCleaning(unittest.TestCase):
250 251
251 os.remove('./tests/data/clean.png') 252 os.remove('./tests/data/clean.png')
252 os.remove('./tests/data/clean.cleaned.png') 253 os.remove('./tests/data/clean.cleaned.png')
254 os.remove('./tests/data/clean.cleaned.cleaned.png')
253 255
254 def test_jpg(self): 256 def test_jpg(self):
255 shutil.copy('./tests/data/dirty.jpg', './tests/data/clean.jpg') 257 shutil.copy('./tests/data/dirty.jpg', './tests/data/clean.jpg')
@@ -267,6 +269,7 @@ class TestCleaning(unittest.TestCase):
267 269
268 os.remove('./tests/data/clean.jpg') 270 os.remove('./tests/data/clean.jpg')
269 os.remove('./tests/data/clean.cleaned.jpg') 271 os.remove('./tests/data/clean.cleaned.jpg')
272 os.remove('./tests/data/clean.cleaned.cleaned.jpg')
270 273
271 def test_mp3(self): 274 def test_mp3(self):
272 shutil.copy('./tests/data/dirty.mp3', './tests/data/clean.mp3') 275 shutil.copy('./tests/data/dirty.mp3', './tests/data/clean.mp3')
@@ -284,6 +287,7 @@ class TestCleaning(unittest.TestCase):
284 287
285 os.remove('./tests/data/clean.mp3') 288 os.remove('./tests/data/clean.mp3')
286 os.remove('./tests/data/clean.cleaned.mp3') 289 os.remove('./tests/data/clean.cleaned.mp3')
290 os.remove('./tests/data/clean.cleaned.cleaned.mp3')
287 291
288 def test_ogg(self): 292 def test_ogg(self):
289 shutil.copy('./tests/data/dirty.ogg', './tests/data/clean.ogg') 293 shutil.copy('./tests/data/dirty.ogg', './tests/data/clean.ogg')
@@ -301,6 +305,7 @@ class TestCleaning(unittest.TestCase):
301 305
302 os.remove('./tests/data/clean.ogg') 306 os.remove('./tests/data/clean.ogg')
303 os.remove('./tests/data/clean.cleaned.ogg') 307 os.remove('./tests/data/clean.cleaned.ogg')
308 os.remove('./tests/data/clean.cleaned.cleaned.ogg')
304 309
305 def test_flac(self): 310 def test_flac(self):
306 shutil.copy('./tests/data/dirty.flac', './tests/data/clean.flac') 311 shutil.copy('./tests/data/dirty.flac', './tests/data/clean.flac')
@@ -318,6 +323,7 @@ class TestCleaning(unittest.TestCase):
318 323
319 os.remove('./tests/data/clean.flac') 324 os.remove('./tests/data/clean.flac')
320 os.remove('./tests/data/clean.cleaned.flac') 325 os.remove('./tests/data/clean.cleaned.flac')
326 os.remove('./tests/data/clean.cleaned.cleaned.flac')
321 327
322 def test_office(self): 328 def test_office(self):
323 shutil.copy('./tests/data/dirty.docx', './tests/data/clean.docx') 329 shutil.copy('./tests/data/dirty.docx', './tests/data/clean.docx')
@@ -335,6 +341,7 @@ class TestCleaning(unittest.TestCase):
335 341
336 os.remove('./tests/data/clean.docx') 342 os.remove('./tests/data/clean.docx')
337 os.remove('./tests/data/clean.cleaned.docx') 343 os.remove('./tests/data/clean.cleaned.docx')
344 os.remove('./tests/data/clean.cleaned.cleaned.docx')
338 345
339 def test_libreoffice(self): 346 def test_libreoffice(self):
340 shutil.copy('./tests/data/dirty.odt', './tests/data/clean.odt') 347 shutil.copy('./tests/data/dirty.odt', './tests/data/clean.odt')
@@ -352,6 +359,7 @@ class TestCleaning(unittest.TestCase):
352 359
353 os.remove('./tests/data/clean.odt') 360 os.remove('./tests/data/clean.odt')
354 os.remove('./tests/data/clean.cleaned.odt') 361 os.remove('./tests/data/clean.cleaned.odt')
362 os.remove('./tests/data/clean.cleaned.cleaned.odt')
355 363
356 def test_tiff(self): 364 def test_tiff(self):
357 shutil.copy('./tests/data/dirty.tiff', './tests/data/clean.tiff') 365 shutil.copy('./tests/data/dirty.tiff', './tests/data/clean.tiff')
@@ -369,6 +377,7 @@ class TestCleaning(unittest.TestCase):
369 377
370 os.remove('./tests/data/clean.tiff') 378 os.remove('./tests/data/clean.tiff')
371 os.remove('./tests/data/clean.cleaned.tiff') 379 os.remove('./tests/data/clean.cleaned.tiff')
380 os.remove('./tests/data/clean.cleaned.cleaned.tiff')
372 381
373 def test_bmp(self): 382 def test_bmp(self):
374 shutil.copy('./tests/data/dirty.bmp', './tests/data/clean.bmp') 383 shutil.copy('./tests/data/dirty.bmp', './tests/data/clean.bmp')
@@ -386,6 +395,7 @@ class TestCleaning(unittest.TestCase):
386 395
387 os.remove('./tests/data/clean.bmp') 396 os.remove('./tests/data/clean.bmp')
388 os.remove('./tests/data/clean.cleaned.bmp') 397 os.remove('./tests/data/clean.cleaned.bmp')
398 os.remove('./tests/data/clean.cleaned.cleaned.bmp')
389 399
390 def test_torrent(self): 400 def test_torrent(self):
391 shutil.copy('./tests/data/dirty.torrent', './tests/data/clean.torrent') 401 shutil.copy('./tests/data/dirty.torrent', './tests/data/clean.torrent')
@@ -403,6 +413,7 @@ class TestCleaning(unittest.TestCase):
403 413
404 os.remove('./tests/data/clean.torrent') 414 os.remove('./tests/data/clean.torrent')
405 os.remove('./tests/data/clean.cleaned.torrent') 415 os.remove('./tests/data/clean.cleaned.torrent')
416 os.remove('./tests/data/clean.cleaned.cleaned.torrent')
406 417
407 def test_odf(self): 418 def test_odf(self):
408 shutil.copy('./tests/data/dirty.odf', './tests/data/clean.odf') 419 shutil.copy('./tests/data/dirty.odf', './tests/data/clean.odf')
@@ -420,6 +431,7 @@ class TestCleaning(unittest.TestCase):
420 431
421 os.remove('./tests/data/clean.odf') 432 os.remove('./tests/data/clean.odf')
422 os.remove('./tests/data/clean.cleaned.odf') 433 os.remove('./tests/data/clean.cleaned.odf')
434 os.remove('./tests/data/clean.cleaned.cleaned.odf')
423 435
424 def test_odg(self): 436 def test_odg(self):
425 shutil.copy('./tests/data/dirty.odg', './tests/data/clean.odg') 437 shutil.copy('./tests/data/dirty.odg', './tests/data/clean.odg')
@@ -437,6 +449,7 @@ class TestCleaning(unittest.TestCase):
437 449
438 os.remove('./tests/data/clean.odg') 450 os.remove('./tests/data/clean.odg')
439 os.remove('./tests/data/clean.cleaned.odg') 451 os.remove('./tests/data/clean.cleaned.odg')
452 os.remove('./tests/data/clean.cleaned.cleaned.odg')
440 453
441 def test_txt(self): 454 def test_txt(self):
442 shutil.copy('./tests/data/dirty.txt', './tests/data/clean.txt') 455 shutil.copy('./tests/data/dirty.txt', './tests/data/clean.txt')
@@ -454,3 +467,4 @@ class TestCleaning(unittest.TestCase):
454 467
455 os.remove('./tests/data/clean.txt') 468 os.remove('./tests/data/clean.txt')
456 os.remove('./tests/data/clean.cleaned.txt') 469 os.remove('./tests/data/clean.cleaned.txt')
470 os.remove('./tests/data/clean.cleaned.cleaned.txt')