From 719cdf20fa8c9921b81eaf6bf3df0d50c790de82 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 24 Sep 2018 20:15:07 +0200 Subject: Second pass of minor formatting --- tests/test_corrupted_files.py | 6 +++--- tests/test_deep_cleaning.py | 2 -- tests/test_libmat2.py | 6 ++---- 3 files changed, 5 insertions(+), 9 deletions(-) (limited to 'tests') 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): def test_docx(self): shutil.copy('./tests/data/dirty.png', './tests/data/clean.docx') with self.assertRaises(ValueError): - office.MSOfficeParser('./tests/data/clean.docx') + office.MSOfficeParser('./tests/data/clean.docx') os.remove('./tests/data/clean.docx') def test_flac(self): shutil.copy('./tests/data/dirty.png', './tests/data/clean.flac') with self.assertRaises(ValueError): - audio.FLACParser('./tests/data/clean.flac') + audio.FLACParser('./tests/data/clean.flac') os.remove('./tests/data/clean.flac') def test_mp3(self): shutil.copy('./tests/data/dirty.png', './tests/data/clean.mp3') with self.assertRaises(ValueError): - audio.MP3Parser('./tests/data/clean.mp3') + audio.MP3Parser('./tests/data/clean.mp3') os.remove('./tests/data/clean.mp3') def test_jpg(self): diff --git a/tests/test_deep_cleaning.py b/tests/test_deep_cleaning.py index 4f1920d..03db6c5 100644 --- a/tests/test_deep_cleaning.py +++ b/tests/test_deep_cleaning.py @@ -30,7 +30,6 @@ class TestZipMetadata(unittest.TestCase): self.assertEqual(item.date_time, (1980, 1, 1, 0, 0, 0)) self.assertEqual(item.create_system, 3) # 3 is UNIX - def test_office(self): shutil.copy('./tests/data/dirty.docx', './tests/data/clean.docx') p = office.MSOfficeParser('./tests/data/clean.docx') @@ -50,7 +49,6 @@ class TestZipMetadata(unittest.TestCase): os.remove('./tests/data/clean.docx') os.remove('./tests/data/clean.cleaned.docx') - def test_libreoffice(self): shutil.copy('./tests/data/dirty.odt', './tests/data/clean.odt') p = office.LibreOfficeParser('./tests/data/clean.odt') diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py index 7a1a9e7..cf13e03 100644 --- a/tests/test_libmat2.py +++ b/tests/test_libmat2.py @@ -55,8 +55,8 @@ class TestGetMeta(unittest.TestCase): self.assertEqual(meta['producer'], 'pdfTeX-1.40.14') self.assertEqual(meta['creator'], "'Certified by IEEE PDFeXpress at 03/19/2016 2:56:07 AM'") self.assertEqual(meta['DocumentID'], "uuid:4a1a79c8-404e-4d38-9580-5bc081036e61") - self.assertEqual(meta['PTEX.Fullbanner'], "This is pdfTeX, Version " \ - "3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) kpathsea " \ + self.assertEqual(meta['PTEX.Fullbanner'], "This is pdfTeX, Version " + "3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) kpathsea " "version 6.1.1") def test_torrent(self): @@ -329,7 +329,6 @@ class TestCleaning(unittest.TestCase): os.remove('./tests/data/clean.docx') os.remove('./tests/data/clean.cleaned.docx') - def test_libreoffice(self): shutil.copy('./tests/data/dirty.odt', './tests/data/clean.odt') p = office.LibreOfficeParser('./tests/data/clean.odt') @@ -410,7 +409,6 @@ class TestCleaning(unittest.TestCase): os.remove('./tests/data/clean.odf') os.remove('./tests/data/clean.cleaned.odf') - def test_odg(self): shutil.copy('./tests/data/dirty.odg', './tests/data/clean.odg') p = office.LibreOfficeParser('./tests/data/clean.odg') -- cgit v1.3