From 55214206b5f0f1c12fec378967f89ef4cb5674f9 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 27 Feb 2019 23:53:07 +0100 Subject: Improve the previous commit - More tests - More documentation - Minor code cleanup --- tests/test_corrupted_files.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/test_corrupted_files.py') diff --git a/tests/test_corrupted_files.py b/tests/test_corrupted_files.py index b2cec00..4a16d51 100644 --- a/tests/test_corrupted_files.py +++ b/tests/test_corrupted_files.py @@ -269,9 +269,6 @@ class TestCorruptedFiles(unittest.TestCase): os.remove('./tests/data/clean.html') with open('./tests/data/clean.html', 'w') as f: - f.write('') - f.write('<title>pouet') - f.write('<mysupertag/>') f.write('

') p = web.HTMLParser('./tests/data/clean.html') with self.assertRaises(ValueError): @@ -281,6 +278,7 @@ class TestCorruptedFiles(unittest.TestCase): p.remove_all() os.remove('./tests/data/clean.html') + def test_epub(self): with zipfile.ZipFile('./tests/data/clean.epub', 'w') as zout: zout.write('./tests/data/dirty.jpg', 'OEBPS/content.opf') -- cgit v1.3