summaryrefslogtreecommitdiff
path: root/tests/test_corrupted_files.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_corrupted_files.py')
-rw-r--r--tests/test_corrupted_files.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_corrupted_files.py b/tests/test_corrupted_files.py
index aee1530..30039e6 100644
--- a/tests/test_corrupted_files.py
+++ b/tests/test_corrupted_files.py
@@ -146,19 +146,19 @@ class TestCorruptedFiles(unittest.TestCase):
146 def test_docx(self): 146 def test_docx(self):
147 shutil.copy('./tests/data/dirty.png', './tests/data/clean.docx') 147 shutil.copy('./tests/data/dirty.png', './tests/data/clean.docx')
148 with self.assertRaises(ValueError): 148 with self.assertRaises(ValueError):
149 office.MSOfficeParser('./tests/data/clean.docx') 149 office.MSOfficeParser('./tests/data/clean.docx')
150 os.remove('./tests/data/clean.docx') 150 os.remove('./tests/data/clean.docx')
151 151
152 def test_flac(self): 152 def test_flac(self):
153 shutil.copy('./tests/data/dirty.png', './tests/data/clean.flac') 153 shutil.copy('./tests/data/dirty.png', './tests/data/clean.flac')
154 with self.assertRaises(ValueError): 154 with self.assertRaises(ValueError):
155 audio.FLACParser('./tests/data/clean.flac') 155 audio.FLACParser('./tests/data/clean.flac')
156 os.remove('./tests/data/clean.flac') 156 os.remove('./tests/data/clean.flac')
157 157
158 def test_mp3(self): 158 def test_mp3(self):
159 shutil.copy('./tests/data/dirty.png', './tests/data/clean.mp3') 159 shutil.copy('./tests/data/dirty.png', './tests/data/clean.mp3')
160 with self.assertRaises(ValueError): 160 with self.assertRaises(ValueError):
161 audio.MP3Parser('./tests/data/clean.mp3') 161 audio.MP3Parser('./tests/data/clean.mp3')
162 os.remove('./tests/data/clean.mp3') 162 os.remove('./tests/data/clean.mp3')
163 163
164 def test_jpg(self): 164 def test_jpg(self):