From 73d2966e8c10eb6c083a2abacc53f3297d16376e Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 27 Feb 2019 23:04:38 +0100 Subject: Improve epub support --- tests/test_corrupted_files.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/test_corrupted_files.py') diff --git a/tests/test_corrupted_files.py b/tests/test_corrupted_files.py index 53c856a..b2cec00 100644 --- a/tests/test_corrupted_files.py +++ b/tests/test_corrupted_files.py @@ -253,13 +253,13 @@ class TestCorruptedFiles(unittest.TestCase): os.remove('./tests/data/clean.cleaned.html') with open('./tests/data/clean.html', 'w') as f: - f.write('') + f.write('') with self.assertRaises(ValueError): web.HTMLParser('./tests/data/clean.html') os.remove('./tests/data/clean.html') with open('./tests/data/clean.html', 'w') as f: - f.write('') + f.write('test') p = web.HTMLParser('./tests/data/clean.html') with self.assertRaises(ValueError): p.get_meta() @@ -269,6 +269,9 @@ 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): -- cgit v1.3